/*
Theme Name: 海之星船舶管理
Theme URI: https://www.shipmanage.cn
Author: 青岛海之星船舶管理有限公司
Description: 专业船舶管理公司官网主题，深蓝金色配色，响应式布局，含首页、公司介绍、核心业务、新闻中心、人才招聘、联系我们6个页面模板。
Version: 72.9
License: GPL v2 or later
Text Domain: haizhixing
*/

/* ========== 全局变量 ========== */
:root {
    --color-primary: #1a4d7f;
    --color-primary-light: #4A7FB5;
    --color-primary-lighter: #6B9FD4;
    --color-gold: #C9A96E;
    --color-gold-light: #E0CFA3;
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f0f2f5;
    --color-gray-200: #e4e7eb;
    --color-gray-300: #cbd2d9;
    --color-gray-500: #7b8794;
    --color-gray-700: #3e4c59;
    --color-gray-900: #1f2933;
    --max-width: 1200px;
    --font-sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --line-height: 1.6;
}

/* 锚点跳转时预留顶部导航栏高度 */
html {
    scroll-padding-top: 100px;
}

/* ========== 重置与基础 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: var(--line-height);
    color: var(--color-gray-700);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
a:hover { color: var(--color-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: #000000; line-height: 1.3; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; margin-bottom: 12px; }
.section-title .subtitle { color: var(--color-gray-500); font-size: 15px; }
.section-title::after { content: ""; display: block; width: 50px; height: 3px; background: var(--color-gold); margin: 18px auto 0; }

/* ========== 顶部导航 ========== */
.site-header {
    position: -webkit-sticky;
    position: sticky; top: 0; z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.site-branding { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.site-branding img { height: 52px; width: auto; }
.site-title-group { display: flex; flex-direction: column; line-height: 1.3; }
.site-branding .site-title {
    font-size: 18px; font-weight: 600; color: #0096ff;
    white-space: nowrap; text-align: left; letter-spacing: 1px;
}
.site-branding .site-title-en {
    font-size: 11px; font-weight: 600; color: #000000;
    text-align: justify; text-align-last: justify; letter-spacing: 0.5px; margin-top: 1px;
    
}
/* 英文模式：公司名过长，单独缩小字号 */
.site-branding.is-en .site-title { font-size: 15px; letter-spacing: 0.5px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
    display: block; padding: 8px 14px; font-size: 15px;
    color: #000000; border-radius: 4px;
}
.main-nav a {
    position: relative;
    transition: color .3s;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
    color: #000000;
    background: #f0f5fa;
}
.main-nav .current-menu-item > a::after {
    display: none;
}
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 3px;
    background: #C9A96E;
    border-radius: 2px;
    opacity: 0.5;
}
.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 26px; height: 26px; position: relative;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--color-primary);
    position: absolute; left: 8px; transition: .3s;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

/* ========== 面包屑 ========== */
.breadcrumb-bar {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 0;
}
.breadcrumb-bar .container { font-size: 14px; }
.breadcrumb-bar a { color: var(--color-gold-light); }
.breadcrumb-bar span { margin: 0 8px; opacity: .6; }

/* ========== 首页 Banner ========== */
.hero-banner {
    position: relative;
    overflow: hidden;
}
.hero-banner .container { padding-bottom: 70px; width: 100%; }
.hero-content { max-width: 640px; }
.hero-content h1 {
    color: var(--color-white); font-size: 42px; margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-content p {
    color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 28px;
}
.hero-float-btn {
    position: absolute; top: 100px; right: 40px;
    background: var(--color-gold); color: var(--color-white);
    padding: 14px 28px; border-radius: 30px; font-weight: 200;
    box-shadow: 0 4px 16px rgba(201,169,110,.4);
    display: flex; align-items: center; gap: 8px;
}
.hero-float-btn:hover { background: #b8965a; color: var(--color-white); }

/* ========== 优势卡片 ========== */
.advantages-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.advantage-card {
    background: var(--color-white); border: 1px solid var(--color-gray-200);
    border-radius: 10px; padding: 36px 28px; text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,51,102,.12);
}
.advantage-card .icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--color-white);
}
.advantage-card h3 { font-size: 20px; margin-bottom: 12px; }
.advantage-card p { color: var(--color-gray-500); font-size: 14px; }

/* ========== 主营业务 ========== */
.services-section { background: var(--color-gray-50); }
.services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.service-card {
    background: var(--color-white); border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    display: flex; flex-direction: column;
}
.service-card .card-icon {
    height: 140px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--color-gold);
}
.service-card .card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: var(--color-gray-500); margin-bottom: 20px; flex: 1; }
.service-card .read-more {
    color: var(--color-gold); font-weight: 200; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
}
.service-card .read-more:hover { gap: 10px; }

/* ========== 船队展示 ========== */
.fleet-scroll {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px;
    scroll-snap-type: x mandatory;
}
.fleet-scroll::-webkit-scrollbar { height: 6px; }
.fleet-scroll::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 3px; }
.fleet-item {
    flex: 0 0 280px; scroll-snap-align: start;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.fleet-item img { width: 100%; height: 180px; object-fit: cover; }
.fleet-item .ship-name {
    padding: 14px; text-align: center; font-weight: 200;
    color: #000000; background: var(--color-gray-50);
}

/* ========== 新闻列表 ========== */
.news-section { background: var(--color-gray-50); }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
    display: flex; gap: 24px; background: var(--color-white);
    border-radius: 10px; padding: 20px; overflow: hidden;
    transition: box-shadow .3s;
}
.news-item:hover { box-shadow: 0 8px 24px rgba(0,51,102,.1); }
.news-item .thumb {
    flex: 0 0 200px; height: 130px; border-radius: 8px; overflow: hidden;
}
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .news-body { flex: 1; }
.news-item .news-date { font-size: 13px; color: #000000; margin-bottom: 6px; }
.news-item h3 { font-size: 18px; margin-bottom: 8px; }
.news-item p { font-size: 14px; color: #000000; }

/* ========== 公司介绍页 ========== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-intro h2 { font-size: 30px; margin-bottom: 20px; }
.about-intro p { margin-bottom: 16px; color: var(--color-gray-700); }
.about-intro .about-img { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-card {
    background: var(--color-white); border: 1px solid var(--color-gray-200);
    border-radius: 10px; padding: 24px; text-align: center;
}
.cert-card .cert-icon { font-size: 36px; color: var(--color-gold); margin-bottom: 12px; }
.cert-card h4 { font-size: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card {
    background: var(--color-white); border-radius: 10px; padding: 30px;
    text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.team-card .avatar {
    width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--color-white);
}
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card .position { color: var(--color-gold); font-size: 14px; margin-bottom: 12px; }
.team-card p { font-size: 14px; color: var(--color-gray-500); }

/* ========== 核心业务页 ========== */
.services-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.service-sidebar {
    background: var(--color-primary); border-radius: 10px; padding: 10px 0;
    position: -webkit-sticky;
    position: sticky; top: 92px;
}
.service-sidebar a {
    display: block; padding: 16px 24px; color: rgba(255,255,255,.7);
    font-size: 15px; border-left: 3px solid transparent;
}
.service-sidebar a:hover, .service-sidebar a.active {
    color: var(--color-white); background: rgba(255,255,255,.08);
    border-left-color: var(--color-gold);
}
.service-detail h3 { font-size: 24px; margin-bottom: 16px; }
.service-detail .detail-img {
    width: 100%; height: 300px; object-fit: cover; border-radius: 10px; margin-bottom: 24px;
}
.service-detail p { margin-bottom: 16px; }
.flow-steps {
    display: flex; gap: 0; margin: 30px 0; justify-content: space-between;
}
.flow-step {
    flex: 1; text-align: center; position: relative; padding: 0 10px;
}
.flow-step .step-num {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 10px;
    background: var(--color-gold); color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 200; font-size: 18px;
}
.flow-step h4 { font-size: 14px; margin-bottom: 4px; }
.flow-step p { font-size: 12px; color: var(--color-gray-500); }
.flow-step:not(:last-child)::after {
    content: "→"; position: absolute; right: -10px; top: 12px;
    color: var(--color-gray-300); font-size: 20px;
}
.faq-item {
    border: 1px solid var(--color-gray-200); border-radius: 8px; margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 16px 20px; cursor: pointer; font-weight: 200;
    color: #000000; background: var(--color-gray-50);
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--color-gold); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-content { padding: 16px 20px; font-size: 14px; color: var(--color-gray-500); }

/* ========== 新闻中心页 ========== */
.news-tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 2px solid var(--color-gray-200); }
.news-tabs a {
    padding: 14px 28px; font-weight: 200; color: var(--color-gray-500);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.news-tabs a.active, .news-tabs a:hover {
    color: #000000;
    border-bottom-color: #C9A96E;
    background: rgba(201,169,110,0.08);
    font-weight: 200;
}
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span {
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    border-radius: 3px; border: 1px solid var(--color-gray-200); font-size: 12px;
}
.pagination .current { background: transparent; color: #000000; border-color: transparent; border-bottom: 3px solid #C9A96E; font-weight: 200; border-radius: 0; }

/* ========== 人才招聘页 ========== */
.careers-banner {
    position: relative; min-height: 400px;
    background: linear-gradient(135deg, rgba(0,51,102,.7), rgba(0,51,102,.5)),
                url('assets/images/careers-banner.jpg') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.careers-banner h1 { color: var(--color-white); font-size: 38px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.job-filter { margin-bottom: 24px; }
.job-filter select {
    padding: 10px 16px; border: 1px solid var(--color-gray-300); border-radius: 6px;
    font-size: 14px; min-width: 200px; background: var(--color-white);
}
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
    background: var(--color-white); border: 1px solid var(--color-gray-200);
    border-radius: 10px; padding: 24px 28px;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
    transition: box-shadow .3s;
}
.job-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,77,127,.15) !important; border-left: 3px solid #C9A96E; }
.job-card .job-info h3 { font-size: 18px; margin-bottom: 8px; }
.job-card .job-meta { display: flex; gap: 20px; font-size: 13px; color: var(--color-gray-500); margin-bottom: 10px; flex-wrap: wrap; }
.job-card .job-desc { font-size: 14px; color: var(--color-gray-500); }
.job-card .apply-btn {
    flex-shrink: 0; background: var(--color-gold); color: var(--color-white);
    padding: 10px 24px; border-radius: 6px; font-weight: 200; font-size: 14px;
    white-space: nowrap;
}
.job-card .apply-btn:hover { background: #b8965a; color: var(--color-white); }
.recruit-flow { background: var(--color-gray-50); }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-card {
    background: var(--color-white); border-radius: 10px; padding: 28px 20px;
    text-align: center; position: relative;
}
.flow-card .flow-icon { font-size: 32px; margin-bottom: 12px; }
.flow-card h4 { font-size: 16px; margin-bottom: 6px; }
.flow-card p { font-size: 13px; color: var(--color-gray-500); }
.contact-card {
    background: var(--color-primary); color: var(--color-white);
    border-radius: 10px; padding: 30px; margin-top: 30px;
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.contact-card .contact-item { text-align: center; }
.contact-card .contact-item .label { font-size: 13px; opacity: .7; margin-bottom: 4px; }
.contact-card .contact-item .value { font-size: 18px; font-weight: 200; color: var(--color-gold-light); }

/* ========== 联系我们页 ========== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.contact-info-card {
    background: var(--color-white); border: 1px solid var(--color-gray-200);
    border-radius: 10px; padding: 32px 24px; text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,51,102,.1); }
.contact-info-card .ci-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--color-white);
}
.contact-info-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-info-card p { font-size: 14px; color: var(--color-gray-500); }
.map-area {
    width: 100%; height: 400px; border-radius: 10px; overflow: hidden;
    background: var(--color-gray-100); margin-bottom: 40px;
    border: 1px solid var(--color-gray-200);
}
.map-area iframe { width: 100%; height: 100%; border: none; }
.contact-form-section { background: var(--color-gray-50); }
.contact-form { max-width: 700px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 200; color: #000000; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--color-gray-300);
    border-radius: 6px; font-size: 14px; font-family: inherit;
    transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,51,102,.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.submit-btn {
    background: var(--color-gold); color: var(--color-white); border: none;
    padding: 14px 40px; border-radius: 6px; font-size: 16px; font-weight: 200;
    cursor: pointer; transition: background .25s;
}
.submit-btn:hover { background: #b8965a; }

/* ========== 底部 Footer ========== */
.site-footer { background: transparent; padding: 0; margin: 0; }
.footer-content {
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}
.footer-company {
    font-size: 13px; font-weight: 200; color: #52606d;
}
.footer-sep { margin: 0 10px; opacity: .4; }
.footer-content a { color: #52606d; }
.footer-content a:hover { color: #C9A96E; }

/* ========== 响应式 ========== */
@media (max-width: 1199px) {
    .advantages-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: repeat(3, 1fr); }
    .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .about-intro { grid-template-columns: 1fr; gap: 30px; }
    .services-layout { grid-template-columns: 1fr; }
    .service-sidebar { position: static; display: flex; padding: 0; overflow-x: auto; }
    .service-sidebar a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .service-sidebar a.active { border-bottom-color: var(--color-gold); border-left: none; }
    .hero-float-btn { display: none; }
}

@media (max-width: 767px) {
    .section { padding: 44px 0; }
    .section-title h2 { font-size: 24px; }
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--color-white); box-shadow: 0 4px 12px rgba(0,0,0,.1);
        max-height: 0; overflow: hidden; transition: max-height .35s;
    }
    .main-nav.open { max-height: 500px; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
    .main-nav a { padding: 14px 24px; border-radius: 0; }
    .hero-banner { min-height: 200px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .advantages-grid, .services-grid, .cert-grid, .team-grid,
    .contact-grid, .flow-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-item .thumb { flex: none; width: 100%; height: 180px; }
    .form-row { grid-template-columns: 1fr; }
    .job-card { flex-direction: column; }
    .flow-steps { flex-direction: column; gap: 20px; }
    .flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -18px; transform: translateX(50%); }
    .site-title-group { width: fit-content; }
    .site-branding .site-title {
    font-size: 19px; font-weight: 400; color: #000000; letter-spacing: 0.5px; font-size: 14px; }
    .site-branding .site-title-en { font-size: 8px; font-weight: 400; color: #333333; text-align: justify; text-align-last: justify; letter-spacing: 0.2px; width: 100%; }
    .site-branding img { height: 52px; }
    .careers-banner h1 { font-size: 26px; }
    .contact-card { flex-direction: column; gap: 16px; }
}

/* ========== V3 块编辑器内容样式 ========== */
main { min-height: 60vh; }
main > * { max-width: 100% !important; }
.service-tab { cursor: pointer; transition: all .25s; margin: 0 !important; }
.service-tab:hover { color: #000000 !important; }
details { border: 1px solid #e4e7eb; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
details summary { padding: 14px 20px; cursor: pointer; font-weight: 200; color: #003366; background: #f8f9fa; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: #C9A96E; font-size: 20px; }
details[open] summary::after { content: "−"; }
details p { padding: 14px 20px; font-size: 14px; color: #7b8794; margin: 0; }
.wp-block-latest-posts { list-style: none; padding: 0; }
.wp-block-latest-posts li { display: flex; gap: 24px; background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px; align-items: flex-start; }
.wp-block-latest-posts li img { width: 200px; height: 130px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.wp-block-latest-posts li a { font-weight: 200; color: #003366; font-size: 18px; }
.wp-block-latest-posts__post-date { font-size: 13px; color: #7b8794; }
.wp-block-latest-posts__post-excerpt { font-size: 14px; color: #7b8794; }
@media (max-width: 767px) {
    .services-tabs-wrap { grid-template-columns: 1fr !important; }
    .wp-block-latest-posts li { flex-direction: column; }
    .wp-block-latest-posts li img { width: 100%; height: 180px; }
    .news-tabs { flex-wrap: wrap; }
    .news-tab { padding: 10px 16px !important; font-size: 14px !important; }
    .haizhixing-news-list .news-item { flex-direction: column !important; }
    .haizhixing-news-list .news-item > div:first-child { flex: none !important; width: 100% !important; height: 180px !important; }
}
/* ========== 船队横向滚动 ========== */
.fleet-scroll-wrap { max-width: 1200px; margin: 0 auto; padding: 10px 0 20px; overflow: hidden; position: relative; }
.fleet-scroll { display: flex; gap: 20px; width: max-content; animation: fleetAutoScroll 30s linear infinite; }
.fleet-scroll-wrap:hover .fleet-scroll { animation-play-state: paused; }
@keyframes fleetAutoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.fleet-scroll::-webkit-scrollbar { display: none; }
.fleet-card { flex: 0 0 240px; border-radius: 10px; overflow: hidden; background: #f8f9fa; transition: transform 0.3s, box-shadow 0.3s; }
.fleet-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,51,102,0.15); }
.fleet-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
@media (max-width: 767px) {
    .fleet-card { flex: 0 0 200px; }
    .fleet-card img { height: 130px; }
    .fleet-scroll { animation-duration: 20s; }
}
/* ========== 首页横幅 ========== */
.hero-banner { position: relative; min-height: 220px; }
.hero-banner::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,51,102,0.7), transparent);
    pointer-events: none;
    z-index: 1;
}
.hero-banner .wp-block-cover__inner-container { position: relative; z-index: 2; }
@media (max-width: 767px) {
    .hero-banner h1 { font-size: 24px !important; }
    .hero-banner p { font-size: 13px !important; }
}
/* ========== 人才招聘横幅 ========== */
.careers-banner { position: relative; }
.careers-banner::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 55%;
    background: linear-gradient(to bottom, rgba(0,51,102,0.65), transparent);
    pointer-events: none;
    z-index: 1;
}
.careers-banner .wp-block-cover__inner-container { position: relative; z-index: 2; }
@media (max-width: 767px) {
    .careers-banner h2 { font-size: 22px !important; }
}

/* ========== 首页横幅文字 ========== */
.hero-banner .banner-text h1,
.hero-banner .banner-text p {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-banner .banner-text h1 {
    text-align: justify;
    text-align-last: justify;
}
.hero-banner .banner-text p {
    text-align: center;
}

/* ========== 语言切换 ========== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    font-size: 13px;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    padding: 4px 10px;
    flex: 0 0 auto;
}
.lang-switcher a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.lang-switcher a:hover {
    color: #003366;
}
.lang-switcher .lang-active {
    color: #C9A96E;
    font-weight: 500;
}
.lang-switcher .lang-sep {
    color: #cbd2d9;
}
@media (max-width: 767px) {
    .lang-switcher {
        margin-left: 10px;
        font-size: 12px;
    }
}

/* ========== 新闻列表修复 ========== */
.haizhixing-news-list {
    width: 100%;
    box-sizing: border-box;
}
.haizhixing-news-list .news-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
}
.haizhixing-news-list .news-item > div:first-child {
    flex: 0 0 200px;
    max-width: 200px;
}
.haizhixing-news-list .news-item > div:last-child {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.haizhixing-news-list .news-item h3,
.haizhixing-news-list .news-item p {
    text-align: left;
}
.news-panel {
    width: 100%;
}
@media (max-width: 600px) {
    .haizhixing-news-list .news-item > div:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }
}

/* ========== 面包屑首页图标 ========== */
.breadcrumb-home-icon {
    display: inline-block;
    width: 18px;
    height: 16px;
    position: relative;
    margin-right: 5px;
    vertical-align: middle;
}
.breadcrumb-home-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 8px solid currentColor;
}
.breadcrumb-home-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 8px;
    border: 2.5px solid currentColor;
    border-top: none;
}

/* ========== 新闻中心卡片样式 ========== */
.news-item-card {
    display: flex;
    gap: 28px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 18px;
    align-items: flex-start;
    transition: all .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.news-item-card:hover {
    box-shadow: 0 4px 16px rgba(0,51,102,0.1);
    border-color: #C9A96E;
}
.news-item-thumb {
    flex: 0 0 220px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}
.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.news-item-card:hover .news-item-thumb img {
    transform: scale(1.05);
}
.news-item-body {
    flex: 1;
    padding-top: 4px;
}
.news-item-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #000000;
    letter-spacing: 0.5px;
}
.news-date-bar {
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #C9A96E;
}
.news-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-item-title a {
    color: #000000;
    text-decoration: none;
    transition: color .3s;
}
.news-item-title a:hover {
    color: #C9A96E;
}
.news-item-excerpt {
    font-size: 14px;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 12px;
}
.news-item-more {
    font-size: 13px;
    color: #C9A96E;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.news-item-more:hover {
    text-decoration: underline;
}

/* ===== 现代效果增强 ===== */
html {
    scroll-behavior: smooth;
}

/* 选中文字颜色 */
::selection {
    background: rgba(201,169,110,0.25);
    color: #000000;
}

/* 图片懒加载淡入 */
img {
    transition: opacity .5s ease;
}

/* 卡片通用悬停提升 */
.adv-card, .service-item, .ci-card, .culture-card {
    will-change: transform;
}

/* 导航栏毛玻璃效果（滚动时） */
.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(26,77,127,0.08);
}

/* 标题渐入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式优化 */
@media (max-width: 767px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}


/* 核心业务卡片悬停效果 */
.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26,77,127,0.12);
    border-color: #C9A96E;
}
.service-detail-card:hover > div:first-child > span {
    background: linear-gradient(135deg,#1a4d7f,#2d6a9f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-detail-card:hover > div:first-child > span {
    color: #C9A96E;
}
@media (max-width: 767px) {
    .service-detail-card { padding: 28px 22px !important; }
}


/* 首页核心业务卡片悬停效果 */
.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26,77,127,0.12);
    border-color: #C9A96E;
}
.service-item:hover > div:first-child {
    background: linear-gradient(135deg,#1a4d7f,#2d6a9f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* 核心业务卡片悬停效果 */
.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26,77,127,0.12);
    border-color: #C9A96E;
    border-top-color: #C9A96E;
}

/* 核心业务卡片交互 */
.service-item .service-desc {
    opacity: 1;
    max-height: 100px;
    margin-top: 8px;
    transition: all 0.3s ease;
}
.service-item:hover .service-desc {
    opacity: 1;
    max-height: 100px;
    margin-top: 8px;
}

/* ========== 通用响应式修复 ========== */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }
table { max-width: 100%; display: block; overflow-x: auto; }
iframe, embed, object { max-width: 100%; }

@media (max-width: 767px) {
    /* 容器内边距收紧 */
    .wp-block-group > div[style*="max-width:1200px"],
    .wp-block-group > div[style*="max-width: 1200px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* flex布局自动换行/垂直排列 */
    div[style*="display:flex"] {
        flex-wrap: wrap;
    }
    div[style*="display:flex"][style*="align-items:center"] {
        flex-direction: row;
    }

    /* grid布局改为单列 */
    div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 核心业务卡片图片高度限制 */
    div[style*="border-radius:10px"] img,
    div[style*="border-radius: 10px"] img {
        height: 160px !important;
        object-fit: cover !important;
    }

    /* 公司优势卡片文字确保可见 */
    .wp-block-group p,
    .wp-block-group h3,
    .wp-block-group h4 {
        color: #333 !important;
    }

    /* 招聘卡片 */
    .job-card { flex-direction: column !important; }
    .job-card > div:first-child {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e8ecf0;
        padding: 20px !important;
    }
    .job-card > div:last-child {
        width: 100% !important;
        padding: 20px !important;
    }

    /* 联系卡片 */
    .contact-card { flex-direction: column !important; }

    /* 新闻列表 */
    .news-item { flex-direction: column !important; }
    .news-item .thumb { width: 100% !important; height: 180px !important; }

    /* 标题字号调整 */
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 17px !important; }
    p { font-size: 14px !important; line-height: 1.8 !important; }

    /* Banner高度调整 */
    div[style*="min-height:250px"],
    div[style*="min-height: 250px"] {
        min-height: 180px !important;
    }
    div[style*="height:250px"],
    div[style*="height: 250px"] {
        height: 180px !important;
    }

    /* 首页Banner修复 */
    .hero-banner,
    .wp-block-cover {
        min-height: 280px !important;
        padding: 30px 16px !important;
    }
    .hero-banner .wp-block-cover__inner-container,
    .wp-block-cover__inner-container {
        padding: 0 16px !important;
        width: 100% !important;
    }
    .hero-banner h1,
    .wp-block-cover h1 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    .hero-banner p,
    .wp-block-cover p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    .banner-text {
        max-width: 100% !important;
        padding-left: 0 !important;
    }
    .wp-block-cover__image-background {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* 按钮宽度自适应 */
    a[style*="width:80px"], a[style*="width: 80px"],
    a[style*="width:100px"], a[style*="width: 100px"] {
        width: auto !important;
        padding: 8px 16px !important;
        display: inline-block !important;
    }

    /* 表格横向滚动 */
    .wp-block-table { overflow-x: auto; }
    .wp-block-table table { min-width: 500px; }

    /* 列布局垂直排列 */
    .wp-block-columns { flex-direction: column !important; }
    .wp-block-column { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

    /* 封面文字 */
    .wp-block-cover__inner-container { padding: 0 16px !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    .section { padding: 30px 0 !important; }
}

/* Footer固定在页面底部 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
}

/* 人才招聘 banner：宽幅满铺图 object-fit:cover、主体水平居中，30%品牌深蓝遮罩 */

/* ========== 首屏 Banner（原内联样式迁出，便于移动端适配） ========== */
.hero-banner {
    min-height: 480px;
    position: relative;
    overflow: hidden;
    background: #003366;
}
.hero-banner-img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
}
.hero-slogan {
    position: absolute; bottom: 60px; left: 8%; z-index: 2;
}
.hero-slogan-row { display: flex; align-items: center; gap: 24px; }
.hero-slogan-row span {
    font-size: 32px; font-weight: 500; color: #ffffff;
    letter-spacing: 6px; text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-slogan-row i {
    display: block; width: 1px; height: 28px; background: #C9A96E;
}
.hero-slogan-bar {
    width: 80px; height: 3px; margin-top: 16px;
    background: linear-gradient(90deg, #C9A96E, transparent);
}

/* ========== 移动端体验优化（对齐门户站版式） ========== */
@media (max-width: 767px) {
    html, body { overflow-x: hidden; max-width: 100%; }

    /* 头部：品牌占一行，导航单独一行可横向滑动 */
    .header-inner {
        flex-wrap: wrap; height: auto; padding: 8px 12px 0;
        align-items: center; row-gap: 0;
    }
    .site-branding { order: 1; flex: 1 1 auto; min-width: 0; gap: 6px; }
    .site-branding img { height: 38px; }
    .site-title-group { min-width: 0; }
    .site-branding .site-title {
        font-size: 15px; letter-spacing: 0.5px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .site-branding.is-en .site-title { font-size: 12px; letter-spacing: 0.2px; }
    .site-branding .site-title-en { display: none; }
    .lang-switcher { order: 2; flex: none; margin-left: 8px; font-size: 11px; padding: 3px 8px; }
    .menu-toggle { display: none !important; }
    .main-nav {
        order: 3; position: static; flex-basis: 100%; max-height: none !important;
        overflow-x: auto; background: transparent; box-shadow: none;
        border-top: 1px solid #edf1f5; margin: 6px -12px 0;
        padding: 0 12px; -webkit-overflow-scrolling: touch;
    }
    .main-nav.open { max-height: none !important; }
    .main-nav ul { flex-direction: row; gap: 0; padding: 0; }
    .main-nav a { padding: 11px 8px; font-size: 13px; white-space: nowrap; border-radius: 0; }
    .main-nav::-webkit-scrollbar { display: none; }

    /* 首屏：高度收敛 + 横向渐变遮罩，文字竖排居中 */
    .hero-banner { min-height: 230px; }
    .hero-slogan { bottom: auto; top: 50%; left: 20px; right: 20px; transform: translateY(-50%); }
    .hero-slogan-row { gap: 10px; }
    .hero-slogan-row span { font-size: 19px; letter-spacing: 2px; }
    .hero-slogan-row i { height: 17px; }
    .hero-slogan-bar { width: 52px; margin-top: 10px; }
    .hero-banner::after {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(90deg, rgba(0,25,50,.78) 0%, rgba(0,25,50,.45) 55%, rgba(0,25,50,.08) 100%);
    }
}

/* ================================================================
   手机端「压缩桌面版」模式（仅 .scaled-mobile 生效，桌面完全不受影响）
   ================================================================ */
.scaled-mobile { --max-width: 1000px; }
.scaled-mobile body { overflow-x: hidden; }
.scaled-mobile [style*="max-width:1200px"] { max-width: 1000px !important; }
.scaled-mobile [style*="max-width: 1200px"] { max-width: 1000px !important; }
.scaled-mobile .container,
.scaled-mobile .fleet-scroll-wrap { max-width: 1000px !important; }

/* 英文模式：保持单行，压缩导航字号与间距以容纳英文菜单 */
.scaled-mobile.en-scaled .main-nav ul { gap: 8px; }
.scaled-mobile.en-scaled .main-nav a { padding: 6px 8px; font-size: 14px; }
