/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: -1;
}

/* 主容器 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* iOS液态玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
}

/* 头部横幅 */
.header {
    margin-bottom: 30px;
    padding: 0;
    text-align: center;
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 20px;
    height: auto;
}

.banner-svg {
    width: 100%;
    height: auto;
    min-height: 60px;
    max-height: 150px;
    display: block;
    border-radius: 20px;
}

/* 响应式横幅高度 */
@media (max-width: 480px) {
    .header {
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .banner-svg {
        min-height: 60px;
        max-height: 80px;
        border-radius: 15px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .header {
        margin-bottom: 25px;
        border-radius: 18px;
    }
    
    .banner-svg {
        min-height: 70px;
        max-height: 100px;
        border-radius: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        margin-bottom: 30px;
    }
    
    .banner-svg {
        min-height: 80px;
        max-height: 120px;
    }
}

@media (min-width: 1025px) {
    .header {
        margin-bottom: 30px;
    }
    
    .banner-svg {
        min-height: 100px;
        max-height: 150px;
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 122, 255, 0.3);
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
}

/* 新闻列表 */
.news-list {
    display: grid;
    gap: 15px;
}

.news-item {
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
    touch-action: manipulation;
}

.news-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.news-item:active {
    transform: translateY(0) scale(0.98);
}

.news-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.news-index {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    pointer-events: none;
}

/* 底部信息 */
.footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.tip {
    font-style: italic;
    color: #888;
    font-size: 13px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .banner-svg {
        height: 60px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .news-item {
        padding: 12px;
    }
    
    .news-content {
        font-size: 14px;
    }
    
    .banner-svg {
        height: 50px;
    }
}

/* 隐藏滚动条但保留滚动功能 */
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 确保所有元素都隐藏滚动条 */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* 动画效果 */
.news-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为每个新闻项添加延迟动画 */
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }
.news-item:nth-child(7) { animation-delay: 0.7s; }
.news-item:nth-child(8) { animation-delay: 0.8s; }
.news-item:nth-child(9) { animation-delay: 0.9s; }
.news-item:nth-child(10) { animation-delay: 1.0s; }
.news-item:nth-child(n+11) { animation-delay: 1.1s; }

/* 隐藏类 */
.hidden {
    display: none;
}