@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-balance {
        text-wrap: balance;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    .text-shadow-sm {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    .hover-scale {
        transition: transform 0.3s ease;
    }
    .hover-scale:hover {
        transform: scale(1.03);
    }
    .card-transition {
        transition: all 0.3s ease;
    }
    .bg-gradient-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    }
    .bg-gradient-asean {
        background: linear-gradient(135deg, #0F52BA 0%, #FF9500 100%);
    }
    .notification-pulse {
        animation: pulse 2s infinite;
    }
}

/* 动画定义 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 82, 186, 0.1);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(15, 82, 186, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 82, 186, 0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 82, 186, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 82, 186, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 82, 186, 0);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.navbar-scrolled {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* 图片懒加载 */
img.lazyload {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.lazyload.loaded {
    opacity: 1;
}

/* 通知滚动动画 */
.toutiao-content {
    position: relative;
    overflow: hidden;
    height: 24px;
}

.toutiao-slider {
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.toutiao-item a {
    display: inline-block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.toutiao-item a:hover {
    transform: translateX(4px);
}

/* 导航下划线动画 */
.nav-item a {
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 100%;
}

/* 国家标签悬停效果 */
.country-tag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.country-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.country-tag:hover::before {
    left: 100%;
}

/* 国家卡片特效 */
.country-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.country-card:hover {
    transform: translateY(-5px);
}

.country-flag {
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

/* 新闻排行数字样式 */
.news-rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 订阅按钮动画 */
.subscribe-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.subscribe-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.subscribe-btn:hover::after {
    left: 100%;
}

.logo img {
    width: 220px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.bar {
    transition: all 0.3s ease;
}

/* 屏蔽层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 1999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

/* 移动端搜索 */
.mobile-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-search.active {
    transform: translateY(0);
}

/* 移动端操作按钮 */
.mobile-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #0F52BA 0%, #1E6FD9 100%);
    box-shadow: 0 4px 12px rgba(15, 82, 186, 0.3);
    color: white;
}

.mobile-action-btn.search-btn {
    background: linear-gradient(135deg, #FF9500 0%, #FFB143 100%);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.mobile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 82, 186, 0.4);
}

.mobile-action-btn.search-btn:hover {
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.4);
}

.mobile-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 82, 186, 0.3);
}

.mobile-action-btn.search-btn:active {
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

/* 移动端样式 */
@media (max-width: 767px) {
    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    body {
        padding-top: 76px;
    }
    
    .top-notification {
        display: none;
    }
    
    .footer-grid-mobile {
        grid-template-columns: 1fr !important;
    }
    
    .footer-links-grid-mobile {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-links-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
    
}

    
.footer-links-container div {
    width: 100%;
    float: left;
}

@media (min-width: 1024px) {
    .footer-links-container div {
        width: 50%;
        float: left ;
    }
}
 @media (max-width: 1024px) {
            #yc {
                display: none !important;
            }
        }