﻿/* ======== Theme ======== */
:root {
    --bg: #0b1220; /* 背景 */
    --surface: #0f192b; /* 卡片/块 */
    --line: #16233a; /* 描边 */
    --text: #e9eefb; /* 正文 */
    --muted: #a9b3c7; /* 次要文字 */
    --brand: #3b82f6; /* 品牌蓝 */
    --brand-2: #1e40af; /* 深蓝(hover) */
    --ok: #22c55e;
    --warn: #f59e0b;
    --radius: 16px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing: antialiased
}

a {
    color: var(--brand);
    text-decoration: none
}

    a:hover {
        color: #93c5fd
    }

img {
    max-width: 100%;
    display: block
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

/* ======== Top Nav ======== */
.nav {
    margin-top: calc(12px + env(safe-area-inset-top, 0px));
    position: relative;
    top: 0;
    z-index: 100;
    background: rgba(11,18,32,.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line)
}


    .nav .wrap {
        max-width: 1100px;
        margin: 0 auto;
        height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px
    }

.brand {
    font-weight: 700;
    color: #fff;
    font-size: 18px
}

.nav .brand img {
    height: 80px; /* 可按需调整 32/36/40 */
    width: auto;
    display: block;
}
.nav a {
    color: #dbe7ff;
    margin-left: 18px
}

    .nav a:hover {
        color: #fff
    }

.nav .btn {
    margin-left: 18px
}

/* ======== Buttons ======== */
.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: .15s all
}

    .btn.primary {
        background: var(--brand);
        color: #fff
    }

        .btn.primary:hover {
            background: var(--brand-2)
        }

    .btn.ghost {
        border-color: #22406a;
        color: #dbe7ff
    }

        .btn.ghost:hover {
            background: #0e1b31
        }

/* ======== Sections / Typography ======== */
.section {
    padding: 40px 0
}

    .section.narrow {
        padding: 26px 0
    }

.h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800
}

.h2 {
    font-size: 28px;
    margin: 22px 0 12px
}

.lead {
    color: var(--muted);
    font-size: 18px
}

.kicker {
    color: #8fb4ff;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 12px
}

/* ======== Hero ======== */
.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0 36px
}

    .hero .panel {
        background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 18px
    }

    .hero .cta {
        display: flex;
        gap: 12px;
        margin-top: 18px
    }

/* ======== Grid cards ======== */
.grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px
}

    .card h3 {
        margin: 0 0 6px
    }

    .card p {
        margin: 0;
        color: var(--muted)
    }

/* ======== Footer ======== */
.footer {
    border-top: 1px solid var(--line);
    margin-top: 40px
}

    .footer .wrap {
        max-width: 1100px;
        margin: 0 auto;
        padding: 22px 20px;
        color: #9fb0c8
    }

/* ======== Utilities ======== */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: #bcd2ff
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

.mt-2 {
    margin-top: 8px
}

.mt-3 {
    margin-top: 12px
}

.mt-4 {
    margin-top: 18px
}

/* ======== Responsive ======== */
@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr
    }

    .grid {
        grid-template-columns: 1fr
    }
}


/* ======== Footer ======== */
.footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    background: rgba(255,255,255,0.02)
}

    .footer .wrap {
        padding: 28px 0
    }

    .footer .brand {
        font-size: 20px;
        color: #fff;
        font-weight: 800
    }

    .footer .muted {
        color: var(--muted)
    }

    .footer h4 {
        margin: 0 0 10px;
        font-size: 14px;
        color: #cfe0ff;
        text-transform: uppercase;
        letter-spacing: .06em
    }

    .footer .linklist {
        list-style: none;
        margin: 0;
        padding: 0
    }

        .footer .linklist li {
            margin: 6px 0
        }

        .footer .linklist a {
            color: #dbe7ff
        }

            .footer .linklist a:hover {
                color: #fff
            }

.footer-legal {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 14px;
    color: #9fb0c8
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 22px
}

@media (max-width:900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}






/* === HOME HERO — OVERLAY FINAL（图片在下、文字覆盖在上）=== */

/* 容器本体 */
.hero-landing {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate; /* 避免遮罩影响外层 */
    margin: 18px 0 40px; /* 下面内容更早露出 */
    border: none !important;
    background: transparent !important;
    /* 关键：保持 5:3、避免占满整屏 */
    aspect-ratio: 5 / 3;
    min-height: 540px; /* 兜底高度 */
    max-height: clamp(520px, 72vh, 760px); /* 别超过视口 72% */
}

    /* 背景图（横图 5:3） */
    .hero-landing .bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* 比例一致时不会裁切 */
        object-position: 75% 50%; /* 人物靠右、垂直居中 */
        filter: saturate(1.02);
    }

    /* 左侧渐变遮罩，保证文字可读 */
    .hero-landing::after {
        content: "";
        position: absolute;
        z-index: 0 !important;
        inset: 0;
        background: linear-gradient(90deg, rgba(11,18,32,.94) 0%, rgba(11,18,32,.86) 34%, rgba(11,18,32,.46) 62%, rgba(11,18,32,0) 100%);
    }

    /* 文字层（盖在图片上） */
    .hero-landing .inner {
        position: relative; /* 叠在图片之上 */
        z-index: 1;
        padding: clamp(24px, 4.2vw, 56px); /* 自适应内边距 */
        max-width: 640px; /* 文字宽度上限 */
    }

    .hero-landing .kicker {
        color: #9db7ff;
        letter-spacing: .22em;
        text-transform: uppercase;
        font-size: 12px;
    }

    .hero-landing .title {
        font-size: clamp(40px, 6.2vw, 56px); /* 自适应标题 */
        line-height: 1.05;
        margin: 8px 0 12px;
        font-weight: 800;
        letter-spacing: -.01em;
    }

    .hero-landing .lead {
        color: var(--muted);
        font-size: 18px;
        margin: 8px 0 18px;
        max-width: 52ch;
    }

    .hero-landing .cta {
        display: flex;
        gap: 12px
    }

/* 小屏：更紧凑 */
@media (max-width:900px) {
    .hero-landing {
        aspect-ratio: unset; /* 放开比例以容纳更多文字 */
        min-height: 420px;
        max-height: none;
    }

        .hero-landing .inner {
            padding: 28px
        }

        .hero-landing .title {
            font-size: 40px
        }
}

/* —— 可选：按钮基础样式（如果其它地方在用）—— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

    .btn.primary {
        background: #2f66ff;
        color: #fff;
        border-color: transparent
    }

    .btn.ghost {
        color: #dbe7ff;
        background: transparent
    }

    .btn:hover {
        filter: brightness(1.02)
    }




/* ====== TRUST BAR (review + brands) ====== */
.trustbar {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 4px 0 28px; /* 跟下方内容留点空间 */
}

    .trustbar .review {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .trustbar .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(255,255,255,.08);
    }

    .trustbar .txt {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .trustbar .stars {
        color: #f6c762;
        letter-spacing: 2px;
        font-size: 14px;
        line-height: 1;
    }

    .trustbar .quote {
        margin: 0;
        color: #cbd7ff;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 品牌名（可以先用文字，后面换成 SVG/logo 图片也行） */
    .trustbar .brands {
        display: flex;
        gap: 22px;
        margin-left: auto;
        flex-wrap: wrap;
    }

    .trustbar .brand {
        color: #9fb1e6;
        opacity: .9;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        font-size: 14px;
    }

/* 小屏适配：上下堆叠 */
@media (max-width: 900px) {
    .trustbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

        .trustbar .brands {
            margin-left: 0;
        }

        .trustbar .quote {
            white-space: normal;
        }
}





/* ===== Diensten cards ===== */
.services {
    margin: 10px 0 40px;
}

    .services .h2 {
        font-size: 28px;
        margin: 0 0 14px;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.service-card {
    display: block;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 44px rgba(0,0,0,.34);
        border-color: rgba(141,170,255,.35);
    }

    .service-card .icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        color: #8fb0ff;
        margin-bottom: 10px;
    }

    .service-card h3 {
        margin: 0 0 6px;
        font-size: 18px;
    }

    .service-card p {
        margin: 0 0 12px;
        color: var(--muted);
        min-height: 40px; /* 保持卡片高度一致 */
    }

    .service-card .more {
        color: #9db7ff;
        font-size: 14px;
    }

/* 响应式：2列 / 1列 */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}




/* Details page */
.service-hero {
    margin: 24px 0 10px;
}

    .service-hero .kicker {
        color: #9db7ff;
        letter-spacing: .22em;
        text-transform: uppercase;
        font-size: 12px;
    }

    .service-hero .h1 {
        font-size: 40px;
        margin: 4px 0 8px;
    }

    .service-hero .lead {
        color: var(--muted);
        max-width: 68ch;
    }

.prose {
    margin: 10px 0 40px;
}

    .prose p {
        margin: 0 0 12px;
        color: var(--muted);
    }

    .prose h2 {
        margin: 22px 0 10px;
        font-size: 24px;
    }

    .prose ul {
        margin: 0 0 12px 18px;
    }




.services-more {
    margin-top: 8px;
}



/* Diensten 页头 */
.page-hero {
    text-align: center;
    padding: 36px 0 8px;
}

    .page-hero .title-xl {
        font-size: 56px;
        line-height: 1.05;
        margin: 0 0 8px;
        font-weight: 800;
        letter-spacing: -.01em;
    }

    .page-hero .lead {
        color: var(--muted);
        font-size: 19px;
        max-width: 780px;
        margin: 0 auto;
    }

/* 服务 2×2 网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0 28px;
}

/* 卡片 */
.svc-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

    .svc-card:hover {
        transform: translateY(-2px);
        border-color: rgba(157,183,255,.36);
        box-shadow: 0 18px 46px rgba(0,0,0,.38);
    }

    .svc-card .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
        color: #5E8BFF; /* 主题蓝 */
        opacity: .95;
    }

        .svc-card .icon svg {
            width: 100%;
            height: 100%;
        }

    .svc-card h3 {
        font-size: 26px;
        line-height: 1.15;
        margin: 0 0 10px;
        letter-spacing: -.01em;
        font-weight: 730;
    }

    .svc-card p {
        color: var(--muted);
        margin: 0 0 14px;
    }

    .svc-card .read {
        color: #9db7ff;
        font-weight: 600;
    }

/* 小屏改为 1 列 */
@media (max-width: 900px) {
    .page-hero .title-xl {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}




/* ---------- Projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.proj-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
    text-decoration: none;
    color: inherit;
}

@media (max-width: 900px) {
    .proj-card {
        grid-template-columns: 1fr;
    }
}

.proj-card .thumb {
    border-radius: 12px;
    background: #0e1524;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

    .proj-card .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .proj-card .thumb.ph {
        color: #6b7aa8;
        font-size: 14px;
    }

.proj-card .meta h3 {
    margin: 4px 0 6px;
    font-size: 22px;
}

.proj-card .meta p {
    color: var(--muted);
    margin: 0 0 8px;
}

.proj-card .read {
    color: #9db7ff;
    font-weight: 500;
}

.project-hero {
    margin: 12px 0 18px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

    .project-hero img {
        width: 100%;
        height: auto;
        display: block;
    }

.prose {
    margin: 12px 0 24px;
    color: var(--muted);
}

    .prose p {
        margin: 0 0 12px;
    }

.back a {
    color: #9db7ff;
}


/* 列表卡片缩略图 */
.project-card .thumb {
    display: block;
    width: 100%;
    height: 220px; /* 统一高度 */
    border-radius: 14px;
    overflow: hidden;
    background: #0e1525;
    border: 1px solid var(--line);
}

    .project-card .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 居中裁剪 */
        display: block;
    }

    /* 无图占位 */
    .project-card .thumb .noimg {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        color: var(--muted);
        font-size: 14px;
        border: 1px dashed var(--line);
        background: linear-gradient(180deg,rgba(255,255,255,.02),transparent);
    }

/* 详情页大图（可选） */
.project-hero {
    width: min(1100px, 92%);
    max-height: 460px;
    object-fit: cover;
    display: block;
    margin: 16px 0 0;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

/* 项目详情页：让截图和按钮之间留出空间 */
.project-cover {
    margin: 8px 0 28px; /* 底部 28px，可按需要 24~32 调整 */
}

    .project-cover img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(0,0,0,.35);
    }

    /* 按钮行也加一点保险间距（可选） */
    .project-cover + .btn {
        margin-top: 6px;
    }

/* 小屏稍微紧凑一点（可选） */
@media (max-width: 900px) {
    .project-cover {
        margin-bottom: 22px;
    }
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

    .field input, .field textarea {
        background: #0e1626;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px 14px;
        color: #eef3ff
    }

    .field textarea {
        resize: vertical
    }

.val {
    color: #ff8484;
    font-size: .9rem
}

.span-2 {
    grid-column: span 2
}

.actions {
    grid-column: span 2;
    display: flex;
    gap: 10px;
    margin-top: 8px
}

@media (max-width:900px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .span-2, .actions {
        grid-column: span 1
    }
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(20,20,25,.96);
    color: #fff;
    border-top: 1px solid #333
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between
}

.cookie-actions {
    display: flex;
    gap: .5rem
}

.cookie-banner .btn {
    padding: .5rem .9rem;
    border-radius: .6rem;
    border: 1px solid #4b6bff
}

    .cookie-banner .btn.primary {
        background: #4b6bff;
        color: #fff
    }

    .cookie-banner .btn.ghost {
        background: transparent;
        color: #cfd3ff
    }

@media (max-width:760px) {
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start
    }
}

.avatar.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2f66ff;
    color: #fff;
    font-weight: 700;
}

.nav .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.nav nav {
    display: flex;
    gap: 14px;
    align-items: center
}

/* language pills */
.langs {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-left: .75rem;
}

.lang {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .55rem;
    border-radius: 999px;
    border: 1px solid var(--border, #2a2f3a);
    background: rgba(255,255,255,.02);
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
    line-height: 1;
}

    .lang .flag {
        width: 18px;
        height: 12px;
        border-radius: 2px;
        display: block;
    }

    .lang .code {
        font-size: .78rem;
        letter-spacing: .02em;
        opacity: .9;
    }

    .lang:hover {
        transform: translateY(-1px);
        border-color: var(--primary, #3b82f6);
    }

    .lang.active {
        background: rgba(59,130,246,.12);
        border-color: var(--primary, #3b82f6);
    }

        .lang.active .code {
            font-weight: 700;
            font-size: .92rem;
            opacity: 1;
        }


/* header 基础布局 */

/* ====== 头部基础 ====== */
.nav {
    position: sticky;
    top: env(safe-area-inset-top, 0);
    z-index: 200;
    background: #0b1220; /* 你的深色导航色 */
    border-bottom: 1px solid rgba(255,255,255,.05);
    --nav-h: 68px;
    overflow: visible !important;
}

    .nav .wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        gap: 14px;
        justify-content: space-between;
    }

.brand {
    display: flex;
    align-items: center;
    line-height: 0;
}
    .brand img {
        display: block;
        height: auto;
        width: auto;
        object-fit: contain;
        z-index: 300;
        /* 让 logo 总能完整显示（含 “SOLUTIONS”） */
        max-height: calc(var(--nav-h));
    }

/* 横向菜单（桌面） */
.menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .menu a {
        color: #e5e7eb;
        text-decoration: none;
    }

        .menu a:hover {
            text-decoration: underline;
        }

.langs {
    display: inline-flex;
    gap: 10px;
    margin-left: 8px;
}

.nav-cta {
    margin-left: 6px;
}

/* 汉堡按钮（默认隐藏，仅小屏显示） */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    z-index: 301;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

    .hamburger .bar {
        position: absolute;
        left: 10px;
        right: 10px;
        height: 2px;
        background: #fff;
        transition: transform .2s ease, opacity .2s ease, top .2s ease;
    }

        .hamburger .bar:nth-child(1) {
            top: 14px;
        }

        .hamburger .bar:nth-child(2) {
            top: 21px;
        }

        .hamburger .bar:nth-child(3) {
            top: 28px;
        }

/* 切换为 X 状态 */
.nav.open .hamburger .bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.nav.open .hamburger .bar:nth-child(2) {
    opacity: 0;
}

.nav.open .hamburger .bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ====== 小屏（折叠菜单） ====== */
@media (max-width: 980px) {
    .brand img {
        max-height: calc(var(--nav-h)-12px );
    }
    /* 显示汉堡，隐藏横排 */
    .hamburger {
        display: inline-block;
    }

    .menu {
        /* 变为覆盖式抽屉（从顶部展开） */
        position: fixed;
        left: 0;
        right: 0;
        top: 56px;
        background: #0b1220;
        border-top: 1px solid rgba(255,255,255,.06);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
        z-index: 100;
    }

    .nav.open .menu {
        max-height: calc(100vh - 56px);
        overflow: auto;
    }

    .menu a, .menu .btn {
        padding: 10px 6px;
    }

    .nav-cta {
        order: 90;
    }

    .langs {
        order: 100;
    }
}

/* 打开抽屉时禁用页面滚动（可选） */
.no-scroll {
    overflow: hidden;
}




/* --- Cookie modal --- */
.cc-overlay[hidden], .cc-modal[hidden] {
    display: none !important;
}

.cc-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

/* ✅ 改为真正的“视口居中”，不受页面横向溢出影响 */
.cc-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none; /* 点击只在面板上生效 */
}

    /* 用一个内层盒子绝对居中，避免 Safari 偏移 */
    .cc-modal::before {
        content: "";
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* 仅用于占位，真正的面板尺寸在 .cc-body */
    }

.cc-body {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    /* 宽度限制：不超过 640px，同时永远不超过视口（预留 32px 边距） */
    width: min(640px, calc(100vw - 32px));
    /* 安全区适配（iOS 刘海/底栏） */
    margin: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: #fff;
    color: #111;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    padding: 22px 20px;
    max-height: calc(100vh - 48px); /* 避免过高溢出 */
    overflow: auto;
}

@media (prefers-color-scheme: dark) {
    .cc-body {
        background: #12161d;
        color: #e8edf2;
    }
}

.cc-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.cc-desc {
    margin: 0 0 16px;
    line-height: 1.6;
}

    .cc-desc a {
        text-decoration: underline;
    }

.cc-options {
    border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 12px;
    padding-top: 12px;
}

@media (prefers-color-scheme: dark) {
    .cc-options {
        border-color: rgba(255,255,255,.1);
    }
}

.cc-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

    .cc-opt.disabled {
        opacity: .6;
    }

.cc-opt-title {
    font-weight: 600;
}

.cc-opt-note {
    font-size: 12px;
    opacity: .8;
    margin-left: auto;
}

/* 按钮区域：小屏改为竖排，防止挤压跑偏 */
.cc-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 420px) {
    .cc-actions {
        flex-direction: column;
    }

        .cc-actions .btn {
            width: 100%;
        }
}

/* 如果你用了 .cookie-modal .actions .btn 这组样式，也保留 */
.cookie-modal .actions .btn {
    min-width: 140px;
    height: 40px;
    font-weight: 600;

}
#cookie-modal, #cookie-overlay {
    display: none;
}
    #cookie-modal.show, #cookie-overlay.show {
        display: block;
    }
    .cookie-modal .actions .btn:not(.primary) {
        background: #F5F7FB;
        border: 1px solid #D5DAE3;
        color: #111827 !important;
    }

        .cookie-modal .actions .btn:not(.primary):hover {
            background: #F3F4F6;
            border-color: #C7CFD9;
        }

        .cookie-modal .actions .btn:not(.primary):disabled {
            background: #fff;
            border-color: #E5E7EB;
            color: #374151 !important;
            -webkit-text-fill-color: #374151;
            opacity: 1 !important;
            cursor: not-allowed;
        }

/* 保险：彻底关闭横向滚动对弹窗定位的影响 */
html, body {
    overflow-x: hidden;
}


/* 首页欢迎语（显示在菜单上方） */
.nav .welcome-line {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9db7ff; /* 和之前 kicker 同风格 */
    opacity: .95;
}

/* 小屏更紧凑 */
@media (max-width: 640px) {
    .nav .welcome-line {
        font-size: 12px;
        margin-bottom: 4px;
    }
}
