/* ========================================
   乐鱼体育风格模板 - 紫色主题
   主色: #EA580C  辅色: #FBBF24
   ======================================== */

/* CSS变量定义 */
:root {
    --primary: #EA580C;
    --secondary: #FBBF24;
    --dark: #2D3436;
    --light: #F5F6FA;
    --gray: #636E72;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #EA580C 0%, #FBBF24 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(, 0.15);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ========================================
   导航栏
   ======================================== */
.mipmb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

/* 导航菜单 */
.mipmb-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.mipmb-menu li {
    position: relative;
}

.mipmb-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mipmb-menu li a:hover,
.mipmb-menu li.active a {
    color: var(--primary);
    background: rgba(, 0.08);
}

/* 导航按钮 */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: var(--dark);
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.btn-register:hover {
    background: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(, 0.3);
}

/* 下拉菜单 */
.mipmb-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    padding: 8px 0;
    z-index: 100;
}

.mipmb-dropdown-item:hover .mipmb-dropdown-list {
    display: block;
}

.mipmb-dropdown-list li a {
    padding: 10px 20px;
    border-radius: 0;
}

/* ========================================
   主内容区域
   ======================================== */
.mipcms-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    padding: 60px 5% 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

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

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--dark);
    color: var(--white);
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.hero-btn.primary {
    background: var(--gradient);
}

/* ========================================
   内容布局
   ======================================== */
.content-section {
    padding: 60px 5%;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

.section-title span {
    color: var(--primary);
}

/* 两列布局 */
.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card .card-image {
    width: 240px;
    min-height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card .card-image mip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-image mip-img {
    transform: scale(1.05);
}

.article-card .card-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.article-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card .card-title a {
    color: var(--dark);
}

.article-card .card-title a:hover {
    color: var(--primary);
}

.article-card .card-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
}

.article-card .card-meta .date {
    color: var(--primary);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
    color: var(--dark);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    display: block;
    color: var(--dark);
    font-size: 14px;
    transition: all 0.3s ease;
}

.widget-list li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.widget-list li p {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light);
    color: var(--gray);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   分类卡片网格
   ======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--white);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.category-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.category-card .card-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   文章详情
   ======================================== */
.article-detail {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.article-detail .detail-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

.article-detail .detail-meta {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light);
    font-size: 14px;
    color: var(--gray);
}

.article-detail .detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-detail .detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
}

.article-detail .detail-content p {
    margin-bottom: 20px;
}

.article-detail .detail-content h2,
.article-detail .detail-content h3,
.article-detail .detail-content h4 {
    margin: 30px 0 15px;
    color: var(--dark);
}

.article-detail .detail-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.article-detail .detail-content a {
    color: var(--primary);
}

.article-detail .detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--light);
    border-radius: 0 8px 8px 0;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light);
}

.article-nav a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 20px;
    background: var(--light);
    border-radius: 8px;
    max-width: 45%;
}

.article-nav a:hover {
    background: var(--primary);
    color: var(--white);
}

.article-nav a span {
    font-size: 12px;
    color: var(--gray);
}

.article-nav a:hover span {
    color: rgba(255, 255, 255, 0.8);
}

.article-nav .nav-title {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    color: var(--dark);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   页脚
   ======================================== */
.mipui-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 5% 30px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* 友情链接 */
.friend-link {
    margin-bottom: 20px;
}

.friend-link ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.friend-link li {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.friend-link a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.friend-link a:hover {
    color: var(--white);
}

/* ========================================
   搜索页
   ======================================== */
.search-section {
    padding: 100px 5% 60px;
    text-align: center;
}

.search-logo {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark);
}

.search-form {
    display: inline-flex;
    gap: 0;
    max-width: 600px;
    width: 100%;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--light);
    border-radius: 10px 0 0 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    padding: 15px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: var(--dark);
}

.hot-keywords {
    margin-top: 30px;
}

.hot-keywords h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--gray);
}

.hot-keywords ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.hot-keywords a {
    padding: 8px 16px;
    background: var(--white);
    border-radius: 20px;
    font-size: 14px;
    color: var(--gray);
    transition: all 0.3s ease;
}

.hot-keywords a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    display: flex;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--gray);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mipmb-menu {
        display: none;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .btn-login,
    .btn-register {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-card .card-image {
        width: 100%;
        height: 180px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-detail .detail-title {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* 返回顶部 */
mip-gototop {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(, 0.3);
}

mip-gototop:hover {
    transform: translateY(-3px);
}
