.nav-ty-box {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    min-height: 320px;
}

/* 斜向分割 - 左侧区域 */
.nav-ty-left {
    padding: 24px 30px;
    padding-right: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

/* 走马灯容器 */
.nav-ty-marquee {
    overflow: hidden;
    width: 100%;
}

.nav-ty-marquee-row {
    display: flex;
    gap: 10px;
    width: max-content;
    margin-bottom: 10px;
}

.nav-ty-marquee-row1 {
    animation: marqueeLeft 20s linear infinite;
}

.nav-ty-marquee-row2 {
    animation: marqueeRight 20s linear infinite;
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* 圆角卡片标签 */
.nav-ty-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.nav-ty-tag-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 2px solid #e85d3a;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

.nav-ty-tag:hover {
    background: rgba(44, 90, 160, 0.1);
    color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* 暗色模式标签 */
html.dark .nav-ty-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
}

html.dark .nav-ty-tag:hover {
    background: rgba(100, 160, 255, 0.15);
    color: #7ab8ff;
}

/* 左侧描述文字 */
.nav-ty-desc {
    margin-top: 24px;
    font-size: 17px;
    line-height: 2.2;
    color: #222;
    letter-spacing: 0.5px;
    padding-right: 5%;
    padding-left: 28px;
    position: relative;
}

.nav-ty-megaphone {
    position: absolute;
    left: 0;
    top: 0;
}

.nav-ty-desc mark {
    background: linear-gradient(to top, rgba(44, 90, 160, 0.25) 40%, transparent 40%);
    padding: 0 4px;
    color: inherit;
}

html.dark .nav-ty-desc {
    color: #eee;
}

html.dark .nav-ty-desc mark {
    background: linear-gradient(to top, rgba(122, 184, 255, 0.2) 40%, transparent 40%);
}

/* 斜向分割 - 右侧图片区域 */
.nav-ty-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 38%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 12px 12px 0;
    z-index: 2;
}

/* 社交图标 */
.nav-ty-social {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.nav-ty-social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.nav-ty-social-item svg {
    pointer-events: none;
    max-width: 20px;
    max-height: 20px;
}

.nav-ty-social-item:hover {
    background: #2c5aa0;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.4);
}

html.dark .nav-ty-social-item {
    background: rgba(50, 50, 50, 0.85);
    color: #ccc;
}

html.dark .nav-ty-social-item:hover {
    background: #7ab8ff;
    color: #222;
    box-shadow: 0 6px 16px rgba(122, 184, 255, 0.4);
}

/* 微信二维码弹出 */
.nav-ty-social-wechat {
    position: relative;
    overflow: visible;
    border-radius: 50%;
}

.nav-ty-wechat-qr {
    display: none;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    margin-right: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: #fff;
    padding: 8px;
    z-index: 10;
    pointer-events: none;
}

.nav-ty-wechat-qr img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.nav-ty-social-wechat:hover .nav-ty-wechat-qr {
    display: block;
}

.nav-ty-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 波浪纹装饰 */
.nav-ty-waves {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    z-index: 1;
    line-height: 0;
}

.nav-ty-waves-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-ty-parallax > use {
    animation: nav-wave-move 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.nav-ty-parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.nav-ty-parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.nav-ty-parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.nav-ty-parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes nav-wave-move {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* 暗色模式波浪 */
html.dark .nav-ty-parallax > use:nth-child(1) {
    fill: rgba(122, 184, 255, 0.1);
}

html.dark .nav-ty-parallax > use:nth-child(2) {
    fill: rgba(122, 184, 255, 0.06);
}

html.dark .nav-ty-parallax > use:nth-child(3) {
    fill: rgba(122, 184, 255, 0.04);
}

html.dark .nav-ty-parallax > use:nth-child(4) {
    fill: rgba(122, 184, 255, 0.02);
}

@media (max-width: 767px) {
    .nav-ty-box {
        display: none;
    }
}
