/*
====================================================================================================
hsiyue 导航栏样式表 (navigation.css)
====================================================================================================

样式范围：
    定义网站顶部导航栏的完整视觉样式，包括品牌标识、搜索功能和导航链接
    负责关于我们模态框的样式实现，提供联系信息展示界面

技术实现：
    - 响应式设计：使用clamp()函数实现流体缩放
    - 渐变效果：多处使用CSS渐变增强视觉效果
    - Flexbox布局：实现灵活的导航元素排列
    - CSS变量：便于主题色彩统一管理
    - 动画过渡：提供平滑的交互反馈

关键组件样式：
    1. 导航栏主体 (.navigation)
    2. 品牌标识区域 (.nav-left, .nav-logo)
    3. 中心搜索区域 (.nav-center)
    4. 右侧导航链接 (.nav-right)
    5. 关于我们模态框 (#about-modal)
    6. 渐变遮罩效果 (.nav-gradient-mask)

响应式断点：
    - 移动端：< 768px
    - 平板端：768px - 1200px
    - 桌面端：> 1200px

更新日期：2024-01-20
作者：hsiyue技术团队
====================================================================================================
*/

/* ===== 导航栏渐变遮罩效果 ===== */
.nav-gradient-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(80px, 20vh, 250px);
    /* 从透明渐变到背景色，营造深度感 */
    background: linear-gradient(
        to bottom, 
        rgba(246, 246, 246, 0) 0%, 
        rgba(246, 246, 246, 0.8) 60%, 
        #f6f6f6 100%
    );
    z-index: 1;
    pointer-events: none; /* 允许底层元素响应鼠标事件 */
}

/* ===== 顶部导航栏主体 ===== */
.navigation {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 12.5%; /* 响应式内边距 */
    z-index: 2;
}

/* ===== 导航栏左侧品牌区域 ===== */
.nav-left {
    display: flex;
    align-items: center;
}

/* 品牌Logo圆形背景 */
.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 响应式尺寸：20px到50px之间流体缩放 */
    width: clamp(20px, calc(15.714px + 1.339vw), 50px);
    height: clamp(20px, calc(15.714px + 1.339vw), 50px);
    /* 品牌渐变背景：蓝色主题 */
    background: linear-gradient(135deg, #4285f4 0%, #5a6fd8 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    /* 响应式字体：0.63rem到1.88rem */
    font-size: clamp(0.63rem, calc(0.446rem + 0.893vw), 1.88rem);
    margin-right: clamp(2px, 1vw, 8px);
    /* 蓝色阴影效果 */
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* 品牌文字样式 */
.nav-logo-text {
    /* 响应式字体：0.94rem到2.50rem */
    font-size: clamp(0.94rem, calc(0.714rem + 1.116vw), 2.50rem);
    font-weight: 800;
}

/* ===== 导航栏右侧链接区域 ===== */
.nav-right {
    display: flex;
    gap: clamp(3px, 2vw, 20px); /* 响应式间距 */
    align-items: center;
}

/* 导航链接组合样式 */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: clamp(2px, 1vw, 6px);
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* 链接组合悬停效果 */
.nav-right-group:hover {
    opacity: 0.8;
}

/* 导航链接SVG图标尺寸 */
.nav-right-group svg {
    width: clamp(13px, 2vw, 30px);
}

/* 导航链接文字样式 */
.nav-right-text {
    font-size: clamp(0.83rem, calc(0.536rem + 0.446vw), 1.25rem);
    font-weight: 600;
    color: #666;
    line-height: 25px;
}

/* ===== 导航栏中心内容区域 ===== */
.nav-center {
    position: relative;
    top: 35%;
    text-align: center;
    width: 100%;
    pointer-events: none; /* 允许底层元素响应事件 */
}

/* 中心区域主标题 */
.nav-center-title {
    position: relative;
    /* 大幅度响应式字体：1.88rem到6.25rem */
    font-size: clamp(1.88rem, calc(1.250rem + 3.125vw), 6.25rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    z-index: 2;
}

/* 中心区域描述文字 */
.nav-center-desc {
    position: relative;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 2rem;
    z-index: 2;
}

/* 搜索容器 */
.nav-center-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: clamp(6px, 2vw, 10px) clamp(8px, 3vw, 15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 50%;
    max-width: 1000px;
    min-width: clamp(250px, calc(242.857px + 2.232vw), 300px);
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 0 auto;
    pointer-events: auto;
    z-index: 10;
}

/* 搜索框聚焦时的效果 */
.nav-center-search-container:focus-within {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.2);
}

.nav-center-search-container svg{
    width: clamp(15px, calc(13.571px + 0.446vw), 25px);
}

/* 搜索输入框 */
.nav-center-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: clamp(0.75rem, calc(0.696rem + 0.268vw), 1.13rem);
    font-weight: 400;
    transition: all 0.3s ease;
    min-width: 0;
    background: transparent;
}

.nav-center-search::placeholder {
    color: #666;
}

/* 搜索按钮 */
.nav-center-search-btn {
    background-color: #eaf0fd;
    color: #4285f4;
    border: none;
    border-radius: 10px;
    padding: clamp(5px, 2vw, 10px) clamp(10px, 3vw, 20px);
    font-size: clamp(0.75rem, calc(0.714rem + 0.179vw), 1.00rem);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 500;
}

.nav-center-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
    background-color: #d4e7fc;
}

.nav-center-search-btn:active {
    transform: translateY(0);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: clamp(85vh);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    color: #333;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 0 28px 28px 28px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.contact-section,
.support-section,
.about-section {
    margin-bottom: 32px;
}

.contact-section h3,
.support-section h3,
.about-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    gap: 12px;
    border: 1px solid #e9ecef;
}

.contact-item strong {
    color: #495057;
    min-width: 60px;
    font-weight: 600;
}

.contact-value {
    flex: 1;
    color: #6c757d;
    font-family: monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.copy-btn {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.copy-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.qr-placeholder {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.qr-code-box {
    width: 160px;
    height: 160px;
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.qr-code-box img{
    width: 160px;
    height: 160px;
}

.qr-code-box:hover {
    border-color: #4285f4;
    background: #f5f7ff;
}

.about-section p {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .contact-value {
        width: 100%;
    }
    
    .copy-btn {
        align-self: flex-end;
    }
}
