/* =============================================================================
   要素式智能转换系统 - 新版导航栏样式
   参考法律文书智能生成系统设计风格
   ============================================================================= */

/* ==================== 导航栏容器 ==================== */
.header-nav {
    background: linear-gradient(90deg, #0f2f4f 0%, #1e4d7b 50%, #2d6ca8 100%);
    color: #ffffff;
    padding: 32px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 背景装饰 */
.header-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-nav .container-fluid {
    position: relative;
    z-index: 1;
}

/* ==================== 导航栏内容布局 ==================== */
.header-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header-nav-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ==================== 品牌标识方块 - 高级设计版本 ==================== */
.brand-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.7);
    /* 与下方系统按钮一致的“凸起按键”厚底边 */
    border-bottom: 4px solid rgba(0, 0, 0, 0.28);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 6px rgba(0, 0, 0, 0.16);
    position: relative;
    overflow: hidden;
}

/* 高级光泽效果 */
.brand-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 60%
    );
    animation: brand-glow 4s ease-in-out infinite;
    pointer-events: none;
}

/* 边缘光晕效果 */
.brand-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.2) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

@keyframes brand-glow {
    0%, 100% {
        transform: translate(-10%, -10%) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(10%, 10%) rotate(180deg);
        opacity: 0.7;
    }
}

.brand-badge:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.22) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-badge:hover::after {
    opacity: 1;
}

.brand-badge:active {
    transform: translateY(3px) scale(1);
    border-bottom-width: 1px;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 3px rgba(0, 0, 0, 0.22);
}

/* 品牌图标容器（承载猫头鹰徽标，徽标自带金边，不再额外套金块） */
.brand-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.brand-badge:hover .brand-badge-icon {
    transform: scale(1.08);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-badge-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* 高级文字效果 */
.brand-name {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg,
        #ffffff 0%,
        #f0f9ff 30%,
        #e0e7ff 60%,
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 3px 8px rgba(255, 255, 255, 0.4));
    }
}

.brand-slogan {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
    color: #e0e7ff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==================== 分隔线 ==================== */
.header-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
}

/* ==================== 当前系统信息 ==================== */
.current-system {
    display: flex;
    align-items: center;
    gap: 14px;
}

.system-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.system-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.system-title {
    font-size: 32px;  /* 桌面端：加大到32px */
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
    /* 金色渐变标题：与下方白色按钮明显区分 */
    color: #ffd86b;
    background: linear-gradient(135deg, #fff4d6 0%, #ffd86b 35%, #ffc83d 60%, #ffe9a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.system-subtitle {
    font-size: 18px;  /* 桌面端：加大到18px */
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.4;
    color: #ffffff;
}

/* 删除旧的logo样式 */

/* ==================== 系统按钮容器 ==================== */
.nav-system-buttons {
    display: flex;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    justify-content: flex-end;
}

/* ==================== 系统按钮样式（立体凸起按键） ==================== */
.nav-system-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    /* 更亮、更实的填充：在深蓝背景上明确读作“可点按键” */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.24) 100%);
    backdrop-filter: blur(8px) saturate(160%);
    border: 2px solid rgba(255, 255, 255, 0.7);
    /* 底边加深做出立体凸起的按键厚度 */
    border-bottom: 4px solid rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
    max-width: 360px;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -3px 6px rgba(0, 0, 0, 0.16);
}

/* 闪光效果 */
.nav-system-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-system-btn:hover::before {
    left: 100%;
}

.nav-system-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.20) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -3px 6px rgba(0, 0, 0, 0.16);
    color: #ffffff;
}

.nav-system-btn:active {
    transform: translateY(3px);
    /* 按下时底边变薄、阴影收紧，像真实按键被压下去 */
    border-bottom-width: 1px;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 3px rgba(0, 0, 0, 0.22);
}

/* 法律文书生成系统特殊颜色 */
.nav-system-generate:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
}

/* 律师函系统特殊颜色 */
.nav-system-lawyer:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
}

/* ==================== 按钮内部元素 ==================== */
.nav-system-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-system-btn:hover .nav-system-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-system-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.nav-system-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.nav-system-desc {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 400;
}

.nav-system-arrow {
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-system-btn:hover .nav-system-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ==================== 响应式设计 ==================== */
/* 单行容不下品牌+标题+三个按钮时改为竖排（按钮整行铺开） */
@media (max-width: 1500px) {
    .header-nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .header-nav-right {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-system-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-system-btn {
        flex: 1 1 0;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header-nav {
        padding: 24px 0;
    }

    .header-nav-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    }

    .brand-badge {
        padding: 14px 20px;
    }

    .brand-badge-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-slogan {
        font-size: 12px;
    }

    .system-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .system-title {
        font-size: 28px;  /* 平板端：28px */
    }

    .system-subtitle {
        font-size: 16px;  /* 平板端：16px */
    }

    .nav-system-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .nav-system-btn {
        width: 100%;
        min-width: 0;
        padding: 16px 18px;
        min-height: 66px;       /* 平板端：保证按键高度，文字完整显示 */
        align-items: center;
    }

    .nav-system-title {
        font-size: 15px;  /* 平板端：15px */
        line-height: 1.35;
    }

    .nav-system-desc {
        font-size: 13px;  /* 平板端：13px */
        line-height: 1.45;
        white-space: normal;
    }

    .nav-system-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .brand-badge {
        padding: 12px 18px;
        gap: 12px;
        border-radius: 14px;
    }

    .brand-badge-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 10px;
    }

    .brand-name {
        font-size: 18px;
        letter-spacing: 0.2px;
    }

    .brand-slogan {
        font-size: 11px;
    }

    .current-system {
        gap: 10px;
    }

    .system-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .system-title {
        font-size: 24px;  /* 小屏手机：24px（原来17px太小）*/
    }

    .system-subtitle {
        font-size: 16px;  /* 小屏手机：16px（原来12px太小）*/
    }

    .nav-system-btn {
        padding: 14px 16px;
        gap: 12px;
        min-height: 64px;       /* 保证按键有足够高度，文字不被挤压 */
        align-items: center;
    }

    .nav-system-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .nav-system-title {
        font-size: 15px;        /* 加大，标题完整清晰 */
        line-height: 1.35;
    }

    .nav-system-desc {
        font-size: 12px;        /* 加大，描述完整可读 */
        line-height: 1.45;
        white-space: normal;    /* 允许换行，避免文字被截断 */
        opacity: 0.95;
    }
}

/* ==================== 主内容区域调整 ==================== */
.main-content {
    margin-top: 0; /* 移除之前的固定导航栏margin */
    min-height: calc(100vh - 160px);
}

/* ==================== 动画效果 ==================== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.2);
    }
}

.nav-system-lawyer {
    animation: pulse-glow 3s ease-in-out infinite;
}

.nav-system-lawyer:hover {
    animation: none;
}

/* ==================== 打印样式 ==================== */
@media print {
    .header-nav {
        display: none !important;
    }
}