/**
 * 子页面导航和底部栏样式 - 与首页v2保持一致
 */

/* ==================== 新导航栏样式 ==================== */
.subpage-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.subpage-navbar.scrolled {
    background: rgba(10, 10, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.subpage-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.subpage-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subpage-nav-brand .logo {
    height: 32px;
    filter: brightness(0) invert(1);
}

.subpage-fusion-tag {
    background: linear-gradient(135deg, #3b82f6, #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.subpage-nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.subpage-nav-item {
    position: relative;
}

.subpage-nav-item > a,
.subpage-nav-item > a:link,
.subpage-nav-item > a:visited {
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.subpage-nav-item > a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.subpage-nav-item.active > a {
    color: #3b82f6;
}

/* 下拉菜单 */
.subpage-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.subpage-nav-item:hover .subpage-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subpage-dropdown-menu h4 {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subpage-dropdown-menu a,
.subpage-dropdown-menu a:link,
.subpage-dropdown-menu a:visited {
    display: block;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-bottom: 4px;
}

.subpage-dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.subpage-dropdown-menu.hardware-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subpage-dropdown-menu.hardware-menu .icon {
    font-size: 20px;
}

.subpage-dropdown-menu.hardware-menu strong {
    display: block;
    color: #f59e0b;
    font-size: 14px;
}

.subpage-dropdown-menu.hardware-menu span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

/* 联系按钮 */
.subpage-nav-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subpage-nav-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* 移动端菜单按钮 */
.subpage-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.subpage-mobile-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* ==================== 新底部栏样式 ==================== */
.subpage-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0a0a1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 0;
    margin-top: 80px;
}

.subpage-footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.subpage-footer-brand .logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.subpage-footer-brand p {
    color: #ffffff !important;
    line-height: 1.8;
    font-size: 14px;
}

.subpage-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.subpage-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.subpage-footer-social a:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.subpage-footer-column h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.subpage-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subpage-footer-column li {
    margin-bottom: 12px;
}

.subpage-footer-column a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.subpage-footer-column a:hover {
    color: #3b82f6;
}

.subpage-footer-contact p {
    color: #ffffff !important;
    margin-bottom: 8px;
    font-size: 14px;
}

.subpage-footer-contact .phone {
    font-size: 20px;
    font-weight: 700;
    color: #f59e0b;
}

.subpage-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.subpage-footer-bottom p {
    color: #64748b;
    font-size: 14px;
}

.subpage-footer-links {
    display: flex;
    gap: 24px;
}

.subpage-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.subpage-footer-links a:hover {
    color: #3b82f6;
}

/* 硬件咨询浮动按钮 */
.subpage-hardware-consult-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.subpage-hardware-consult-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

/* 响应式 */
@media (max-width: 1024px) {
    .subpage-nav-menu {
        display: none;
    }
    
    .subpage-mobile-toggle {
        display: flex;
    }
    
    .subpage-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .subpage-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .subpage-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* 为子页面内容添加顶部间距，避免被固定导航遮挡 */
.subpage-content {
    padding-top: 70px;
}
