/* 公共基础样式 */
:root {
    --primary-color: #ff6699;
    --secondary-color: #6699cc;
    --dark-color: #333;
    --light-color: #f8f8f8;
    --gray-color: #666;
    --light-gray: #999;
    --white: #fff;
    --black: #000;
    /* 颜色变量 */
    --primary-light: #f3b7cc;
    --primary-dark: #cc3366;
    --secondary-light: #99bbee;
    --secondary-dark: #4477aa;
    --bg-color: #f8f8f8;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --info-color: #2196f3;

    /* 尺寸变量 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;

    /* 间距变量 */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 30px;
    --space-xxl: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--gray-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #ff3366;
    border-color: #ff3366;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    background-color: #f5f5f5;
}

.breadcrumb a {
    color: var(--gray-color);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--primary-color);
}

/* 页面标题 */
.page-title {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}


.section-subtitle {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--gray-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
    border-radius: 4px;
    color: var(--white);
}

.pagination a:hover,
.pagination li.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination li.active span{
    color: var(--white);
}


.pagination .prev,
.pagination .next {
    padding: 8px 12px;
}

.pagination .ellipsis {
    border: none;
}

/* 侧边栏布局 */
.content-with-sidebar {
    display: flex;
    gap: 30px;
}

.content-main {
    flex: 1;
    margin-bottom: 30px;
}

.sidebar {
    width: 300px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 图标样式 */
.icon-check-circle,
.icon-lightbulb,
.icon-info,
.icon-hospital,
.icon-doctor,
.icon-material,
.icon-complexity,
.icon-fire {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 头部 */
/* 头部导航样式 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav li a:hover::after,
.main-nav li.active a::after {
    width: 100%;
}

.main-nav li.active a {
    color: var(--primary-color);
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
}

.search-box button:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    transition: all 0.3s ease;
}



/* 页脚样式 */
.footer {
    background: #333;
    color: #ccc;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a{
    color: #ccc;
    transition: all 0.3s ease;
    display: block;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}


.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.copyright p {
    margin-bottom: 10px;
    text-align: center;
}

.copyright a {
    color: #ccc;
    margin: 0 10px;
}

.copyright a:hover {
    color: var(--primary-color);
}


/* 响应式设计 */
@media (max-width: 992px) {
    .content-with-sidebar {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-top: 40px;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--white);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav li {
        margin: 10px 0;
    }

    .search-box {
        width: 200px;
        margin: 0 15px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 25px;
    }

    .pagination a {
        padding: 8px 12px;
        min-width: 36px;
        text-align: center;
        font-size: 14px;
    }
    .pagination a {
        padding: 6px 10px;
        min-width: 32px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* 分页响应式 */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 25px;
    }

    .pagination a {
        padding: 8px 12px;
        min-width: 36px;
        text-align: center;
        font-size: 14px;
    }
    .pagination a {
        padding: 6px 10px;
        min-width: 32px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .header .container {
        height: 60px;
    }

    .logo img {
        height: 30px;
    }

    .main-nav {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .search-box {
        display: none;
    }
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 25px;
    }

    .pagination a {
        padding: 8px 12px;
        min-width: 36px;
        text-align: center;
        font-size: 14px;
    }
    .pagination a {
        padding: 6px 10px;
        min-width: 32px;
        font-size: 13px;
    }
}