* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #ffffff;
    color: #4a5568;
}

/* Navigation - 使用about.css的样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #408cc8, #40C782);
    padding: 1.2rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 30px;
    position: relative;
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.lang-switcher {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    list-style: none;
}

.lang-switcher a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-switcher a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.lang-switcher a:not(.active):hover {
    background: rgba(255,255,255,0.1);
}

/* Media Section */
.media-section {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3rem;
}

.section-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: #333;
    background: linear-gradient(to right, #408cc8, #40C782);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header p {
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 28px;
    font-size: 1.2rem;
    color: #4a5568;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    color: #408cc8;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #408cc8, #40C782);
}

.tab-btn:hover:not(.active) {
    color: #408cc8;
}

/* Media Container */
.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.media-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.media-thumbnail {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-card:hover .media-thumbnail img {
    transform: scale(1.08);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.play-icon i {
    color: #408cc8;
    font-size: 28px;
    margin-left: 4px;
}

.media-card:hover .play-icon {
    opacity: 1;
}

.media-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.4;
}

.media-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    color: #4a5568;
    font-size: 0.95rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
}

.video-badge {
    background: linear-gradient(to right, #408cc8, #40C782);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.picture-badge {
    background: linear-gradient(to right, #40C782, #408cc8);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2a7cc7 0%, #2ec57d 100%);
    color: white;
    padding: 5rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('static/image/logo.png') center/cover;
    opacity: 0.03;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-section p:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    font-size: 1.5rem;
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: normal;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.media-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.media-card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    text-decoration: none;
}

footer,
.footer-section h4,
.footer-section p,
.footer-section a,
.footer-bottom,
.footer-bottom a {
    color: #ffffff !important;
}

/* 公安备案号超链接：保留动画、移除下划线 */
.footer-bottom a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

/* 移除所有伪元素下划线动画 */
.footer-bottom a::before,
.footer-bottom a::after {
    content: none !important;
}

/* 悬停/点击效果：颜色变白 + 轻微右移 */
.footer-bottom a:hover,
.footer-bottom a:active {
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

/* 回到顶部按钮样式 */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(to right, #408cc8, #40C782);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

#backToTop:active {
    transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .media-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #408cc8, #40C782);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .lang-switcher {
        margin-left: 0;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .media-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .section-header h1 {
        font-size: 2.3rem;
    }

    .section-header p {
        font-size: 1.05rem;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 22px;
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    #backToTop {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem;
    }
    
    .media-section {
        padding: 0 1.2rem;
    }

    .section-header {
        padding-top: 2rem;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0.8rem;
    }
    
    .media-thumbnail {
        height: 200px;
    }
}

/* 导航栏媒体链接在顶部时的椭圆背景效果 */
.navbar-top .nav-links a[href="./media.html"] {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 确保在非顶部状态时，媒体链接仍然有活动状态样式 */
.nav-links a[href="./media.html"] {
    background: rgba(255,255,255,0.2);
    color: white;
}

