/* ========================================
   Common CSS - 头部导航和底部样式
   ======================================== */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 禁止移动端浏览器自动调整字体大小 */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    /* 禁止移动端浏览器自动调整字体大小 */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* 禁止移动端浏览器自动调整字体大小 */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ========================================
   导航栏样式
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    will-change: background, box-shadow;
    transform: translateZ(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ff6b35;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #ff6b35;
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Beta Badge */
.beta-badge {
    position: absolute;
    top: -14px;
    right: -18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.4);
    animation: betaPulse 2s ease-in-out infinite;
}

@keyframes betaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.6);
    }
}

/* ========================================
   底部样式
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    color: #ffffff;
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section {
    animation: fadeInUp 0.6s ease;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

.footer-map {
    display: flex;
    flex-direction: column;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    position: relative;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
}

#mapContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-addresses {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-address-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #ffffff;
}

.map-address-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff6b35;
    transform: translateX(5px);
}

.map-address-item.active {
    background: rgba(255, 107, 53, 0.15);
    border-color: #ff6b35;
}

.map-address-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #ff6b35;
}

.map-address-item span {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.footer-info-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #ff6b35;
}

.footer-info-item div {
    flex: 1;
}

.footer-info-item p {
    margin: 0;
    line-height: 1.8;
    color: #d0d0d0;
    font-size: 15px;
}

.footer-info-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info-item a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.footer-copyright a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ff6b35;
}

/* ========================================
   联系方式弹窗
   ======================================== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-modal.active {
    display: flex;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contact-modal-close {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: #e8e8ed;
    transform: rotate(90deg);
}

.contact-modal-close svg {
    width: 20px;
    height: 20px;
    color: #1d1d1f;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f5f5f7;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    background: #e8e8ed;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.phone-icon {
    background: #0094cd;
    color: white;
}

.wechat-icon {
    background: #07c160;
    color: white;
}

.service-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.location-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-info {
    flex: 1;
}

.contact-number {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: 0.5px;
}

.contact-label {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    margin-bottom: 4px;
}

.contact-action {
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.contact-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-block;
}

.qrcode-btn {
    position: relative;
}

.contact-qrcode-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 200px;
}

.qrcode-btn:hover .contact-qrcode-popup {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

.contact-qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: white;
}

.contact-qrcode-popup img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 8px;
    margin-bottom: 10px;
}

.contact-qrcode-popup p {
    margin: 0;
    font-size: 13px;
    color: #86868b;
    text-align: center;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 60px;
    }

    .nav-logo img {
        height: 45px;
    }

    .nav-menu {
        height: 100vh;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 30px;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-only {
        display: inline-block;
    }
    
    .desktop-only {
        display: none;
    }

    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .footer-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .footer-info {
        gap: 15px;
    }
    
    .footer-info-item {
        padding: 12px;
    }
    
    .footer-info-item svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-info-item p {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Social Accounts Dropdown */
.nav-item-with-dropdown {
    position: relative;
}

/* 创建一个不可见的桥接区域，连接导航项和下拉框 */
.nav-item-with-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -50px;
    right: -50px;
    height: 30px;
    background: transparent;
    z-index: 998;
    display: none;
}

.nav-item-with-dropdown:hover::after {
    display: block;
}

.social-accounts-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    z-index: 999;
    border-bottom: 1px solid #e0e0e0;
    overflow: visible;
    pointer-events: none;
}

.nav-item-with-dropdown:hover .social-accounts-dropdown,
.social-accounts-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

/* 下拉框头部引导区域 */
.dropdown-header {
    text-align: center;
    padding: 30px 40px;
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    opacity: 0;
    transform: translateY(-20px);
}

/* 鼠标移入时触发动画 */
.nav-item-with-dropdown:hover .stat-item {
    animation: slideInDown 0.6s ease forwards;
}

.nav-item-with-dropdown:hover .stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item-with-dropdown:hover .stat-item:nth-child(3) {
    animation-delay: 0.2s;
}

.nav-item-with-dropdown:hover .stat-item:nth-child(5) {
    animation-delay: 0.3s;
}

.stat-divider {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #d0d0d0, transparent);
    margin: 0 10px;
    opacity: 0;
}

.nav-item-with-dropdown:hover .stat-divider {
    animation: fadeIn 0.6s ease forwards;
}

.nav-item-with-dropdown:hover .stat-divider:nth-child(2) {
    animation-delay: 0.15s;
}

.nav-item-with-dropdown:hover .stat-divider:nth-child(4) {
    animation-delay: 0.25s;
}

.nav-item-with-dropdown:hover .stat-divider:nth-child(6) {
    animation-delay: 0.35s;
}

.dropdown-subtitle {
    font-size: 32px;
    color: #1d1d1f;
    font-weight: 600;
    margin: 0;
    opacity: 0;
    transform: scale(0.8);
}

.nav-item-with-dropdown:hover .dropdown-subtitle {
    animation: zoomIn 0.6s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 20px;
    color: #1d1d1f;
    font-weight: 600;
}

.accounts-grid {
    display: flex;
    gap: 20px;
    padding: 0 40px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
    justify-content: center;
    perspective: 1000px;
}

.accounts-grid::-webkit-scrollbar {
    height: 6px;
}

.accounts-grid::-webkit-scrollbar-track {
    background: transparent;
}

.accounts-grid::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.accounts-grid::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.account-card {
    position: relative;
    background: #f6fbff;
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
    border: 1px solid #e0e0e0;
    min-width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateY(-90deg);
    /* 启用GPU加速 */
    will-change: transform;
    backface-visibility: hidden;
}

/* 鼠标移入时触发翻牌动画 */
.nav-item-with-dropdown:hover .account-card {
    animation: flipIn 0.6s ease forwards;
}

.nav-item-with-dropdown:hover .account-card:nth-child(1) {
    animation-delay: 0.5s;
}

.nav-item-with-dropdown:hover .account-card:nth-child(2) {
    animation-delay: 0.6s;
}

.nav-item-with-dropdown:hover .account-card:nth-child(3) {
    animation-delay: 0.7s;
}

.nav-item-with-dropdown:hover .account-card:nth-child(4) {
    animation-delay: 0.8s;
}

.nav-item-with-dropdown:hover .account-card:nth-child(5) {
    animation-delay: 0.9s;
}

.nav-item-with-dropdown:hover .account-card:nth-child(6) {
    animation-delay: 1s;
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: rotateY(-90deg) translateZ(0);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg) translateZ(0);
    }
}

.account-card:hover {
    transform: translateY(-5px) rotateY(5deg) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.platform-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.platform-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.douyin-badge {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.xiaohongshu-badge {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
}
.xiaohongshu-badge img{width:32px;height:32px;}
.weixin-badge {
    background: linear-gradient(135deg, #07c160 0%, #38d973 100%);
}

.account-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-info {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.account-name {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.account-followers {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.followers-count {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.followers-label {
    font-size: 12px;
    color: #86868b;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-visit,
.btn-qrcode {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-visit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-visit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-visit.btn-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.btn-visit.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-qrcode {
    background: white;
    color: #1d1d1f;
    border: 2px solid #e0e0e0;
    position: relative;
}

.btn-qrcode:hover {
    border-color: #667eea;
    background: #f5f7fa;
}

.btn-qrcode svg {
    width: 14px;
    height: 14px;
}

.qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-qrcode:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    margin-bottom: 5px;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qrcode-popup img {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 8px;
}

.qrcode-popup p {
    margin-top: 10px;
    font-size: 12px;
    color: #86868b;
    text-align: center;
}

/* ========================================
   最新研发案例下拉菜单样式
   ======================================== */
.nav-item-cases {
    position: relative;
}

/* 创建桥接区域 */
.nav-item-cases::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -50px;
    right: -50px;
    height: 30px;
    background: transparent;
    z-index: 998;
    display: none;
}

.nav-item-cases:hover::after {
    display: block;
}

.cases-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    z-index: 999;
    border-bottom: 1px solid #e0e0e0;
    overflow: visible;
    pointer-events: none;
}

.nav-item-cases:hover .cases-dropdown,
.cases-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

.cases-grid {
    display: flex;
    gap: 30px;
    padding: 0 40px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.case-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e0e0e0;
    width: 160px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    text-decoration: none;
    display: block;
}

/* 鼠标移入时触发动画 */
.nav-item-cases:hover .case-card {
    animation: slideUp 0.5s ease forwards;
}

.nav-item-cases:hover .case-card:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item-cases:hover .case-card:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-item-cases:hover .case-card:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-item-cases:hover .case-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.case-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .account-card {
        min-width: 260px;
    }
    
    .accounts-grid {
        padding: 0 20px;
    }
    
    .cases-grid {
        padding: 0 20px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .case-card {
        width: 240px;
    }
    
    .case-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    /* 移动端隐藏悬浮下拉框 */
    .social-accounts-dropdown,
    .cases-dropdown {
        display: none;
    }
    
    /* 移动端显示点击提示 */
    /* .nav-item-with-dropdown .nav-link::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 6px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid currentColor;
        vertical-align: middle;
    } */
}

/* 移动端弹窗 */
.social-accounts-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: white;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.social-accounts-modal.active {
    display: flex;
}

.social-accounts-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f5f5f7;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.social-accounts-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.social-accounts-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-accounts-modal-close svg {
    width: 20px;
    height: 20px;
    color: #1d1d1f;
}

.social-accounts-modal-content {
    padding: 20px;
}

.social-accounts-modal .accounts-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.social-accounts-modal .account-card {
    min-width: auto;
}

/* ========================================
   移动端"找包装"全屏弹窗样式（默认隐藏）
   ======================================== */
.mobile-social-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: white;
    display: none;
    flex-direction: column;
}

@media (max-width: 768px) {
    .mobile-social-modal {
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-social-modal.active {
        display: flex;
        transform: translateY(0);
    }
    
    .mobile-social-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-social-modal-title {
        font-size: 20px;
        font-weight: 700;
        color: white;
        margin: 0;
    }
    
    .mobile-social-modal-close {
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .mobile-social-modal-close:active {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(0.95);
    }
    
    .mobile-social-modal-close svg {
        width: 24px;
        height: 24px;
        color: white;
    }
    
    .mobile-social-modal-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 移动端引导文案区域 */
    .mobile-dropdown-header {
        text-align: center;
        padding: 30px 20px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    }
    
    .mobile-stats-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .mobile-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .mobile-stat-number {
        font-size: 28px;
        font-weight: 800;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
    }
    
    .mobile-stat-label {
        font-size: 13px;
        color: #86868b;
        font-weight: 600;
    }
    
    .mobile-stat-divider {
        width: 2px;
        height: 30px;
        background: linear-gradient(to bottom, transparent, #d0d0d0, transparent);
    }
    
    .mobile-dropdown-subtitle {
        font-size: 20px;
        color: #1d1d1f;
        font-weight: 700;
        margin: 0;
    }
    
    /* 移动端账号列表 */
    .mobile-accounts-list {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-account-card {
        position: relative;
        background: white;
        border-radius: 16px;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border: 2px solid #f0f0f0;
        transition: all 0.3s ease;
    }
    
    .mobile-account-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-platform-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-platform-badge img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }
    
    .mobile-platform-badge.xiaohongshu-badge img {
        width: 32px;
        height: 32px;
    }
    
    .mobile-account-avatar {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid #f0f0f0;
        flex-shrink: 0;
    }
    
    .mobile-account-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-account-info {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-account-name {
        font-size: 15px;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0 0 8px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-account-followers {
        display: flex;
        align-items: baseline;
        gap: 5px;
    }
    
    .mobile-followers-count {
        font-size: 20px;
        font-weight: 700;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .mobile-followers-label {
        font-size: 12px;
        color: #86868b;
    }
    
    .mobile-account-actions {
        flex-shrink: 0;
    }
    
    .mobile-btn-visit {
        display: inline-block;
        padding: 10px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-btn-visit:active {
        transform: scale(0.95);
        box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-btn-disabled {
        display: inline-block;
        padding: 10px 20px;
        background: #e0e0e0;
        color: #999;
        border-radius: 25px;
        font-size: 13px;
        font-weight: 600;
    }
    
    /* 视频号二维码按钮样式 */
    .mobile-btn-qrcode {
        border: none;
        cursor: pointer;
    }
}

/* ========================================
   视频号二维码弹窗样式
   ======================================== */
.video-qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-qrcode-modal.active {
    display: flex;
}

.video-qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.video-qrcode-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: qrcodeModalSlideIn 0.3s ease;
    z-index: 1;
}

@keyframes qrcodeModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-qrcode-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-qrcode-close:hover {
    background: #e8e8ed;
    transform: rotate(90deg);
}

.video-qrcode-close:active {
    transform: rotate(90deg) scale(0.95);
}

.video-qrcode-close svg {
    width: 24px;
    height: 24px;
    color: #1d1d1f;
}

.video-qrcode-body {
    text-align: center;
}

.video-qrcode-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 25px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-qrcode-image {
    margin: 0 auto 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    display: inline-block;
}

.video-qrcode-image img {
    width: 240px;
    height: 240px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-qrcode-tip {
    font-size: 15px;
    color: #86868b;
    margin: 0;
    font-weight: 500;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .video-qrcode-content {
        padding: 35px 25px;
    }
    
    .video-qrcode-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .video-qrcode-image {
        padding: 12px;
    }
    
    .video-qrcode-image img {
        width: 200px;
        height: 200px;
    }
    
    .video-qrcode-tip {
        font-size: 14px;
    }
}