:root {
    --dc-primary: #0d2b54;
    --dc-primary-dark: #081d3a;
    --dc-accent: #c9a227;
    --dc-accent-dark: #b08d1f;
    --dc-light: #f5f7fa;
    --dc-text: #2b2f36;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--dc-text);
    background: #fff;
}

a { color: var(--dc-primary); }
a:hover { color: var(--dc-accent-dark); }

.bg-primary-dc { background-color: var(--dc-primary) !important; }
.bg-primary-dark-dc { background-color: var(--dc-primary-dark) !important; }
.text-accent { color: var(--dc-accent) !important; }
.btn-accent {
    background-color: var(--dc-accent);
    border-color: var(--dc-accent);
    color: #fff;
}
.btn-accent:hover { background-color: var(--dc-accent-dark); color: #fff; }
.btn-outline-accent {
    border-color: var(--dc-accent);
    color: var(--dc-accent);
}
.btn-outline-accent:hover { background-color: var(--dc-accent); color: #fff; }

.navbar-dc { background: var(--dc-primary); }
.navbar-dc .navbar-brand, .navbar-dc .nav-link { color: #fff; }
.navbar-dc .nav-link:hover, .navbar-dc .nav-link.active { color: var(--dc-accent); }
.navbar-dc .dropdown-menu { background: var(--dc-primary-dark); }
.navbar-dc .dropdown-menu .dropdown-item { color: #fff; }
.navbar-dc .dropdown-menu .dropdown-item:hover { background: var(--dc-primary); color: var(--dc-accent); }

/* 移动端汉堡按钮：深蓝导航上使用白色图标，保证可见 */
.navbar-dc .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: .375rem;
    padding: .35rem .55rem;
    line-height: 1;
}
.navbar-dc .navbar-toggler:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .55);
}
.navbar-dc .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 语言切换器 */
.navbar-dc .dropdown-menu .dropdown-item.active,
.navbar-dc .dropdown-menu .dropdown-item:active {
    background-color: transparent;
    color: var(--dc-accent);
    font-weight: 600;
}
.navbar-dc .dropdown-menu .dropdown-item .lang-code {
    float: right;
    margin-left: 1.25rem;
    opacity: .55;
    font-size: .8em;
}
.lang-name { display: none; }

/* 语言按钮保持描边样式，避免触屏 hover 残留成白底 */
.navbar-dc .lang-switch > .dropdown-toggle:hover,
.navbar-dc .lang-switch > .dropdown-toggle:focus,
.navbar-dc .lang-switch > .dropdown-toggle:active {
    background-color: transparent;
    color: #fff;
    border-color: var(--dc-accent);
}
.navbar-dc .lang-switch > .dropdown-toggle:focus { box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .35); }

/* 移动端：语言切换器独占一行，菜单内联展开，避免被 offcanvas 裁切 */
@media (max-width: 991.98px) {
    .lang-name { display: inline; }
    .navbar-dc .offcanvas-body .lang-switch { width: 100%; }
    .navbar-dc .offcanvas-body .lang-switch > .dropdown-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        background-color: rgba(255, 255, 255, .07);
        border-color: rgba(255, 255, 255, .45);
        padding: .5rem .85rem;
    }
    .navbar-dc .offcanvas-body .lang-switch .dropdown-menu {
        position: static;
        width: 100%;
        margin: .35rem 0 0;
        max-height: 260px;
        overflow-y: auto;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: .5rem;
    }
    .navbar-dc .offcanvas-body .lang-switch .dropdown-item { padding: .55rem .85rem; }
}

.hero-banner {
    background: linear-gradient(120deg, var(--dc-primary) 0%, var(--dc-primary-dark) 100%);
    color: #fff;
    padding: 0;
}
.hero-banner h1 { font-weight: 700; }

/* Hero 轮播（支持后台配置的背景图）
   图片按 2.5:1 比例输出，此处用 aspect-ratio 保持同比例，
   无论屏幕多宽都不会上下裁切图片 */
.hero-banner .carousel-item {
    min-height: 500px;
    aspect-ratio: 2.5 / 1;
    padding: 96px 0;
    background-color: var(--dc-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-banner .carousel-item.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 29, 58, .58) 0%, rgba(13, 43, 84, .32) 45%, rgba(8, 29, 58, .58) 100%);
}
/* 内容层：绝对定位 + flex，保证在任意高度的 banner 中垂直居中 */
.hero-banner .carousel-item > .container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 28px;
}
.hero-banner .carousel-item h1 {
    font-size: clamp(1.5rem, 6vw, 3.4rem);
    line-height: 1.2;
}
.hero-banner .carousel-item h1,
.hero-banner .carousel-item .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .5); }

@media (max-width: 991.98px) {
    .hero-banner .carousel-item { min-height: 420px; }
}
@media (max-width: 767.98px) {
    .hero-banner .carousel-item { min-height: 340px; aspect-ratio: auto; padding: 60px 0; }
    .hero-banner .carousel-item h1 { font-size: 1.75rem; }
    .hero-banner .carousel-item .lead { font-size: 1rem; }
}

.section-pad { padding: 64px 0; }
.section-title { font-weight: 700; color: var(--dc-primary); }
.section-sub { color: #6c757d; }

.feature-icon {
    width: 64px; height: 64px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(201,162,39,.12);
    color: var(--dc-accent);
    font-size: 28px;
    margin-bottom: 16px;
}

.card-service, .card-vehicle, .card-testimonial {
    border: none; box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform .2s ease;
    height: 100%;
}
.card-service:hover, .card-vehicle:hover { transform: translateY(-4px); }

.card-vehicle { overflow: hidden; }
.vehicle-thumb {
    height: 150px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    overflow: hidden;
}
@media (max-width: 575.98px) { .vehicle-thumb { height: 118px; } }
.vehicle-thumb img {
    display: block;
    width: 100%; height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.card-vehicle:hover .vehicle-thumb img { transform: scale(1.05); }
.vehicle-thumb i { font-size: 46px; color: var(--dc-accent); }

.cta-block {
    background: linear-gradient(120deg, var(--dc-primary) 0%, var(--dc-primary-dark) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 48px;
}

.footer-dc { background: var(--dc-primary-dark); color: #cdd6e3; }
.footer-dc a { color: #cdd6e3; }
.footer-dc a:hover { color: var(--dc-accent); }
.footer-dc h6 { color: #fff; }

.lang-flag { opacity: .6; }
.lang-flag.active { opacity: 1; font-weight: 700; }

.breadcrumb-dc a { color: var(--dc-accent); }

/* Banner 简介（城市/服务页） */
.banner-intro {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.65;
    color: #33455c;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767.98px) {
    .banner-intro { font-size: 1.1rem; }
}

.faq-question { cursor: pointer; }

.banner-inner {
    background-size: cover; background-position: center; position: relative;
    color: #fff; padding: 100px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
}
.banner-inner::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(13,43,84,.85), rgba(8,29,58,.75));
}
/* 有底图时：遮罩减淡，保证图片可见，文字靠投影保持清晰 */
.banner-inner.has-bg::before {
    background: linear-gradient(115deg, rgba(8,29,58,.78) 0%, rgba(8,29,58,.48) 48%, rgba(8,29,58,.22) 100%);
}
.banner-inner.has-bg h1,
.banner-inner.has-bg .lead {
    text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45);
}
.banner-inner h1 { margin-bottom: .35em; }
@media (max-width: 767.98px) {
    .banner-inner { padding: 64px 0; min-height: 220px; }
    .banner-inner h1 { font-size: 1.9rem; }
}

.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--dc-accent); color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

.booking-form .form-control:focus { border-color: var(--dc-accent); box-shadow: 0 0 0 .2rem rgba(201,162,39,.25); }

.cookie-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
    background: rgba(8,29,58,.96); color: #fff; padding: 14px 0; display: none;
}
.cookie-bar.show { display: block; }

.img-cover { object-fit: cover; width: 100%; height: 100%; }

.admin-login-bg { background: linear-gradient(120deg, var(--dc-primary), var(--dc-primary-dark)); }

/* 富文本内容排版 */
.rich-content { line-height: 1.85; color: #37404d; }
.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
    color: var(--dc-primary); font-weight: 700; margin: 1.3em 0 .55em;
}
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.25rem; }
.rich-content h4 { font-size: 1.1rem; }
.rich-content p { margin-bottom: 1em; }
.rich-content ul, .rich-content ol { margin: 0 0 1em 1.5em; padding-left: 0; }
.rich-content li { margin-bottom: .4em; }
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; margin: .5em 0; }
.rich-content a { color: var(--dc-accent); text-decoration: underline; }
.rich-content blockquote {
    border-left: 4px solid var(--dc-accent); background: #f7f8fb;
    margin: 1em 0; padding: .8em 1em; color: #555;
}
.rich-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.rich-content table th, .rich-content table td { border: 1px solid #dee2e6; padding: .5em .75em; }
.rich-content hr { margin: 1.5em 0; border-color: #e5e9f0; }

/* 后台富文本编辑器 */
.richtext-editor { margin-bottom: .75rem; }
.richtext-editor .w-e-toolbar { border-radius: .25rem .25rem 0 0; }
.richtext-editor .w-e-text-container { background: #fff; border-radius: 0 0 .25rem .25rem; }
.richtext-editor .w-e-text-container [contenteditable] { line-height: 1.7; }
