/* common.css - 火皇阁通用样式 */

/* 基础变量和重置 */
:root {
    --primary-color: #ff2d55;
    --secondary-color: #d81e06;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 8px 24px rgba(255, 45, 85, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f9f5f0;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}


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

/* 导航栏样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 32px;
    color: var(--primary-color);
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 8px 15px;
    position: relative;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 180px;
}

.search-btn, .mobile-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin-left: 8px;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-btn {
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}

.user-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* 手机端导航按钮 */
.mobile-nav-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
}

/* 手机端搜索框 */
.mobile-search-box {
    display: none;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 8px 15px;
    position: relative;
    flex: 1;
    margin: 0 15px;
}

.mobile-search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding-right: 30px;
    font-size: 14px;
}

/* 手机端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 15px;
    width: 200px;
    background: white;
    z-index: 99;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

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

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-links a {
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
}

.mobile-menu-links a:last-child {
    border-bottom: none;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: var(--primary-color);
}

/* 用户操作菜单 */
.user-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 180px;
    background: white;
    z-index: 99;
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.user-menu.active {
    display: block;
}

.user-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-menu-links a {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-links a:hover {
    background-color: #f8f8f8;
    color: var(--primary-color);
}

.user-menu-links .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* 手机端用户菜单 */
.mobile-user-menu {
    margin-top: 1px;
    padding-top: 1px;
    border-top: 1px solid #f0f0f0;
}

.mobile-user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
}

        .banner {
            position: relative;
            height: 250px;
            overflow: hidden;
            margin-bottom: 30px;
            width: 100%;
        }
        
        .banner-image {
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/skin/ecms80/images/banner.jpg') center/cover no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .banner-content {
            text-align: center;
            color: #fff;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            padding: 0 15px;
        }
        
        .banner-title {
            font-size: 48px;
            font-weight: bold;
            margin-bottom: 15px;
            animation: fadeInUp 1s;
        }
        
        .banner-subtitle {
            font-size: 24px;
            animation: fadeInUp 1s 0.5s both;
        }
        
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 内容区域 */
        .content-section {
            padding: 50px 0;
            width: 100%;
        }
        
        .section-title {
            text-align: center;
            font-size: 32px;
            margin-bottom: 40px;
            color: #8b0000;
            position: relative;
        }
        
        .section-title:after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background: #8b0000;
            margin: 10px auto;
        }
        
/* 特色区域（PC端3列） */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列等宽 */
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center; /* 内容居中 */
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px); /*  hover上浮 */
}

.feature-icon {
    font-size: 40px;
    color: #8b0000;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}
/* 分类标签 */
.categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-tag {
    white-space: nowrap;
    padding: 6px 15px;
    background-color: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.category-tag:hover, .category-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hot-tag {
    position: relative;
}

.hot-tag::after {
    content: "热";
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 8px;
}

/* 移动端跳转视频流提示 */
.mobile-video-redirect {
    display: none;
    text-align: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* 页脚 */
.site-footer {
    background: #666;
    color: #fff;
    padding: 50px 0 20px;
    width: 100%;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8b0000;
}

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

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #8b0000;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    padding: 5px 5px;
    border-radius: 12px;
    transition: all 0.3s;
    flex: 1;
    max-width: 65px;
}

.nav-button.active {
    color: #8b0000;
    background: rgba(139, 0, 0, 0.08);
}

.nav-button i {
    font-size: 16px;
    margin-bottom: 2px;
}

.nav-button span {
    font-size: 12px;
    font-weight: 500;
}

.nav-button:hover {
    background: rgba(139, 0, 0, 0.05);
    color: #8b0000;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .features {
         display: none;
    }
    /* 页脚改为2列 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .search-box {
        display: none;
    }

    .mobile-search-box {
        display: flex;
    }

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

    .user-actions .user-btn {
        display: none;
    }

    /* 手机端导航布局调整 */
    .nav-container {
        padding: 10px 15px;
    }

    .logo {
        flex-shrink: 0;
    }

    .mobile-search-box {
        margin: 0 10px;
    }
            .banner {
                height: 250px;
            }
            
            .banner-title {
                font-size: 36px;
            }
            
            .banner-subtitle {
                font-size: 18px;
            }
            
            .features {
                grid-template-columns: 1fr;
            }
            
    /* 移动端页脚只显示版权信息 */
    .footer-content {
        display: none;
    }
    
    .site-footer {
        padding: 20px 0;
    }
    
    .copyright {
        padding-top: 0;
        border-top: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .container {
        padding-bottom: 70px;
    }
    
    .mobile-video-redirect {
        display: block;
    }
}

@media (max-width: 576px) {

            
            .banner {
                height: 200px;
            }
            
            .banner-title {
                font-size: 28px;
            }
            
            .banner-subtitle {
                font-size: 16px;
            }
            
            .section-title {
                font-size: 26px;
            }
     .footer-content {
        grid-template-columns: 1fr;
    }
    
    .categories {
        padding: 10px 15px;
    }

    .mobile-search-box {
        margin: 0 8px;
    }

    .mobile-search-box input {
        font-size: 13px;
    }
}

@media (min-width: 481px) {
    .mobile-video-redirect {
        display: none;
    }
}