/* ========================================
   共用组件样式
   ======================================== */

/* ========================================
   Header - 导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
   
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0) 100%);
    pointer-events: none;
}

.header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
       
}

.header.scrolled::before { display: none; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;

}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

.logo-icon svg { width: 30px; height: 30px; stroke: white; }

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    transition: color 0.3s ease;
}

.header.scrolled .logo-text { color: var(--text-dark); }
.logo-text span { color: var(--primary-light); }
.header.scrolled .logo-text span { color: var(--primary); }

/* 导航 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.header.scrolled .nav-link { color: var(--text-main); }

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(37,99,235,0.08);
}

.nav-link svg {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* 下拉菜单 */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-dropdown-link:hover {
    color: var(--primary);
    background: var(--bg-light);
    transform: translateX(4px);
}

.nav-dropdown-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.nav-dropdown-link:hover svg { opacity: 0.8; }

/* 右侧操作 */
.header-actions { display: flex; align-items: center; gap: 16px; }

.phone-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
    background: #0079C3;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
    transition: all 0.3s ease;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37,99,235,0.4);
}

.mobile-toggle { display: none; flex-direction: column; gap: 6px; padding: 10px; background: none; border: none; cursor: pointer; }
.mobile-toggle span { width: 28px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s ease; }
.header.scrolled .mobile-toggle span { background: var(--text-dark); }

/* ========================================
   Footer - 页脚
   ======================================== */
.footer {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
    color: var(--text-dark);
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand { max-width: 320px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg { width: 28px; height: 28px; stroke: white; }

.footer-logo-text { font-size: 26px; font-weight: 800; color: var(--text-dark); }
.footer-logo-text span { color: var(--primary); }

.footer-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.footer-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.footer-links { display: flex; flex-direction: column; gap: 16px; }

.footer-link {
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(6px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-contact-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.footer-contact-icon svg { width: 20px; height: 20px; stroke: var(--primary); }

.footer-contact-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.footer-social:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.2);
}

.footer-social svg { width: 22px; height: 22px; stroke: var(--text-secondary); }
.footer-social:hover svg { stroke: white; }

/* ========================================
   右侧悬浮工具栏
   ======================================== */
.side-toolbar {
    position: fixed;
    right: 40px;
    bottom: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toolbar-item {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.toolbar-item svg { width: 26px; height: 26px; stroke: var(--text-main); transition: all 0.3s ease; }
.toolbar-item:hover svg { stroke: var(--primary); }

.toolbar-phone {
    background: var(--gradient-blue);
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

.toolbar-phone svg { stroke: white !important; }

.toolbar-phone:hover {
    box-shadow: 0 12px 40px rgba(37,99,235,0.4);
}

.toolbar-wechat { position: relative; }

.toolbar-wechat .toolbar-qrcode {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 180px;
}

.toolbar-wechat .toolbar-qrcode::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: white;
}

.toolbar-wechat:hover .toolbar-qrcode { opacity: 1; visibility: visible; }

.toolbar-qrcode img { width: 140px; height: 140px; }

.toolbar-qrcode-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 12px;
}

.toolbar-backtop { opacity: 0; visibility: hidden; }
.toolbar-backtop.visible { opacity: 1; visibility: visible; }

/* ========================================
   内页Banner
   ======================================== */
.page-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.85) 0%, rgba(30,64,175,0.9) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-banner-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-banner-desc {
    font-size: 20px;
    opacity: 0.9;
}

/* ========================================
   响应式 - 移动端
   ======================================== */
@media (max-width: 1200px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: flex; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}

@media (max-width: 768px) {
    .header-inner { height: 80px; }
    .logo-icon { width: 44px; height: 44px; }
    .logo-text { font-size: 24px; }
    .phone-btn { padding: 12px 24px; font-size: 14px; }
    
    .page-banner { height: 300px; }
    .page-banner-title { font-size: 36px; }
    .page-banner-desc { font-size: 16px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    
    .side-toolbar { right: 20px; bottom: 80px; }
    .toolbar-item { width: 50px; height: 50px; }
    .toolbar-item svg { width: 22px; height: 22px; }
}
