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

/* ==================== 导航栏容器 ==================== */
.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: 40px;
    height: 40px;
    object-fit: contain;
}

/* 背景装饰 */
.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.35);
    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.3);
    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-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg,
        #fbbf24 0%,
        #f59e0b 50%,
        #d97706 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow:
        0 6px 20px rgba(251, 191, 36, 0.5),
        0 2px 8px rgba(217, 119, 6, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

/* 图标光泽效果 */
.brand-badge-icon::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-badge:hover .brand-badge-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow:
        0 10px 30px rgba(251, 191, 36, 0.7),
        0 4px 12px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.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: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.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: 20px;
    align-items: center;
}

/* ==================== 系统按钮样式 ==================== */
.nav-system-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 350px;
}

/* 闪光效果 */
.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: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.nav-system-btn:active {
    transform: translateY(-1px);
}

/* 法律文书生成系统特殊颜色 */
.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: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.nav-system-desc {
    font-size: 12px;
    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: 1400px) {
    .nav-system-btn {
        min-width: 320px;
        padding: 14px 20px;
    }

    .nav-system-title {
        font-size: 16px;
    }

    .nav-system-desc {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .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 {
        min-width: 0;
        flex: 1 1 calc(50% - 10px);
    }
}

@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: 14px 18px;
    }

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

    .nav-system-desc {
        font-size: 12px;  /* 平板端：12px */
    }

    .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: 12px 16px;
        gap: 10px;
    }

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

    .nav-system-title {
        font-size: 13px;  /* 小屏手机：13px（原来14px在小屏上还可以更小一点）*/
    }

    .nav-system-desc {
        font-size: 11px;  /* 小屏手机：11px（原来11px保持不变）*/
    }
}

/* ==================== 主内容区域调整 ==================== */
.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;
    }
}