/* MCMS现代模板 - 主样式文件 */

/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background: #f5f5f5; 
}

/* CSS变量 */
:root {
    --primary: #2196f3;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --accent: #00bcd4;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #666;
    --white: #fff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

/* 导航栏 */
.header {
    background: #e3f2fd; /* 浅蓝色背景 */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.header .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.header .logo img {
    height: 40px;
    width: auto;
}
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    background: rgba(33,150,243,0.1);
    border-radius: 20px;
}
.header-phone i { color: var(--accent); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 10px;
}

/* 导航菜单 */
.nav { display: flex; gap: 2px; align-items: center; }
.nav > a {
    color: var(--dark);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}
.nav > a:hover, .nav > a.active {
    background: var(--primary);
    color: var(--white);
}

/* 下拉菜单 */
.nav .dropdown { 
    position: relative;
    display: flex;
    align-items: center;
}
.nav .dropdown > a {
    color: var(--dark);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav .dropdown > a i {
    font-size: 10px;
    transition: transform 0.3s;
}
.nav .dropdown:hover > a {
    background: var(--primary);
    color: var(--white);
}
.nav .dropdown:hover > a i {
    transform: rotate(180deg);
}
.nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    padding: 10px 0;
    z-index: 1001;
}
.nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}
.nav .dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 25px;
}

/* Banner */
.banner { 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: var(--white); 
    padding: 60px 20px; 
    text-align: center; 
}
.banner h1 { font-size: 36px; margin-bottom: 10px; }
.banner p { font-size: 18px; opacity: 0.9; }

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

/* 面包屑 */
.breadcrumb { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 15px 0; 
    font-size: 14px; 
    color: var(--gray-600); 
}
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: #ccc; }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* 文章卡片网格 */
.article-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}
@media (max-width: 1200px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .article-grid { grid-template-columns: 1fr; } }

/* 文章卡片 */
.article-card { 
    background: var(--white); 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-md); 
    transition: all 0.3s;
}
.article-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-lg); 
}
.article-card .thumb { 
    width: 100%; 
    height: 200px; 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.article-card .thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.article-card .content { padding: 20px; }
.article-card h3 { font-size: 18px; margin-bottom: 10px; }
.article-card h3 a { color: var(--dark); text-decoration: none; }
.article-card h3 a:hover { color: var(--primary); }
.article-card .summary { 
    font-size: 14px; 
    color: var(--gray-600); 
    line-height: 1.6; 
    margin-bottom: 15px; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .meta { 
    display: flex; 
    justify-content: space-between; 
    color: #999; 
    font-size: 13px; 
}
.article-card .meta a { color: var(--primary); text-decoration: none; }

/* 页脚 */
.footer { 
    background: var(--dark); 
    color: var(--white); 
    padding: 60px 20px 30px; 
    margin-top: 60px; 
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-info {
    text-align: left;
}
.footer-info img {
    height: 50px;
    margin-bottom: 20px;
}
.footer-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}
.footer h4 { 
    font-size: 18px; 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--primary); 
}
.footer-links a { 
    display: block; 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
    padding: 8px 0; 
    transition: all 0.3s; 
}
.footer-links a:hover { color: var(--white); padding-left: 10px; }
.footer-contact p { 
    color: rgba(255,255,255,0.8); 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.footer-contact i { color: var(--primary); }
.footer-bottom { 
    max-width: 1200px; 
    margin: 40px auto 0; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    text-align: center; 
}
.footer-bottom p { 
    color: rgba(255,255,255,0.6); 
    font-size: 14px; 
    margin-bottom: 5px; 
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination a {
    padding: 10px 16px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--dark);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.pagination a:hover, .pagination a.active {
    background: var(--primary);
    color: var(--white);
}


/* 移动端导航样式 */
@media (max-width: 900px) {
    .mobile-menu-btn { display: block; }
    .nav { 
        display: none; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        right: 0; 
        background: #fff; 
        flex-direction: column; 
        padding: 15px; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
        z-index: 999; 
        max-height: 80vh; 
        overflow-y: auto; 
    }
    .nav.show { display: flex; }
    .nav > a, .nav .dropdown > a { 
        width: 100%; 
        justify-content: space-between; 
        padding: 12px 15px; 
        border-radius: 8px; 
    }
    .nav .dropdown-menu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        box-shadow: none; 
        padding-left: 15px; 
        margin-top: 5px; 
        background: #f8f9fa; 
        border-radius: 8px; 
    }
    .nav .dropdown-menu a { padding: 10px 15px; }
    .header-phone { display: none; }
}
