/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动画样式 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #2A7FFF;
    color: white;
    padding: 6px 12px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1a6fe6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #2A7FFF;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2A7FFF;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #2A7FFF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #2A7FFF;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* 顶部导航样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #2A7FFF 0%, #1a6fe6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* 服务条款内容样式 */
.terms-content {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.terms-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2A7FFF;
}

.notice-icon {
    color: #2A7FFF;
    flex-shrink: 0;
}

.notice-text h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.notice-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #666;
}

.terms-sections {
    margin-top: 30px;
}

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.terms-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.terms-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.terms-section strong {
    color: #2A7FFF;
    font-weight: 600;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2A7FFF;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #2A7FFF;
}

.search-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #2A7FFF;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 15px 0;
}

.mobile-nav ul li {
    padding: 10px 20px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: #2A7FFF;
}

/* 头部轮播样式 */
.hero-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slides {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, z-index 0.5s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.carousel-content h2 {
    color: white;
    margin-bottom: 10px;
}

.carousel-content h2::after {
    background-color: white;
}

.read-time {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
}

/* 场景分类区样式 */
.category-section {
    margin-bottom: 40px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.category-group {
    flex: 1;
    min-width: 300px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    /* width: 100%; */
}


.category-btn i {
    margin-right: 10px;
    color: #2A7FFF;
}

.category-btn:hover {
    background-color: #2A7FFF;
    color: white;
    border-color: #2A7FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-btn:hover i {
    color: white;
}

/* 重置筛选按钮样式 */
.reset-filter {
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    margin-top: 10px;
}

.reset-filter:hover {
    background-color: #e0e0e0;
    color: #333;
    border-color: #999;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reset-filter:hover i {
    color: #333;
}

.reset-filter:active {
    transform: translateY(0);
}

/* 最新科普列表样式 */
.latest-articles {
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.category-tag {
    background-color: #e3f2fd;
    color: #2A7FFF;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.view-more {
    text-align: center;
    margin-top: 20px;
}

/* 热门误区破解样式 */
.myth-busters-preview {
    margin-bottom: 40px;
}

.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.myth-card {
    background-color: white;
    border-radius: 8px;
     padding: 10px; 
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.myth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.myth-icon {
    /* margin-right: 15px; */
    margin: 15px 10px 0px 0px;
    width: 40px;
    height: 40px;
    background-color: #ffebee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
    flex-shrink: 0;
}

.myth-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e53935;
}

.myth-detailed-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.myth-detailed-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2A7FFF;
}

.myth-detailed-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* 底部样式 */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #2A7FFF;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-carousel {
        height: 300px;
    }
    
    .carousel-content {
        padding: 20px;
    }
    
    .carousel-content h2 {
        font-size: 1.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .categories {
        flex-direction: column;
    }
    
    .category-group {
        width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .myths-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 10px 15px;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .hero-carousel {
        height: 250px;
    }
    
    .carousel-content {
        padding: 15px;
    }
    
    .carousel-content h2 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* 侧边栏样式 */
.sidebar {
    width: 100%;
    margin-top: 30px;
}

/* Science Facts样式 */
.sidebar-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.fact-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.fact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fact-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.fact-toggle:hover {
    color: #2A7FFF;
}

.fact-toggle .fa-lightbulb {
    color: #FFD700;
    margin-right: 10px;
}

.fact-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.fact-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #2A7FFF;
    font-size: 1.2rem;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2A7FFF;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 收藏按钮样式 */
.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.favorite-btn.active {
    color: #e53935;
}

.favorite-btn:hover {
    color: #e53935;
}

/* 分享按钮样式 */
.share-btn {
    background: none;
    border: 2px solid #2A7FFF;
    color: #2A7FFF;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #2A7FFF;
    color: white;
}

/* 分享弹窗样式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.share-option:hover {
    transform: translateY(-5px);
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.facebook {
    background-color: #3b5998;
    color: white;
}

.twitter {
    background-color: #1da1f2;
    color: white;
}

.email {
    background-color: #ea4335;
    color: white;
}