/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 主色调 */
:root {
    --primary-color: #165DFF;
    --secondary-color: #1D2129;
    --accent-color: #4080FF;
    --light-gray: #f0f2f5;
    --dark-gray: #4E5969;
    --white: #ffffff;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo img {
    height: 80px;
    margin-right: 15px;
    margin-left: 10px;
    ;
}

.logo-text h1 {
    font-size: 22px;
    color: #2D4294;
    font-weight: bold;
}

.logo-text p {
    font-size: 14px;
    color: var(--dark-gray);
}

.search-box {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e5e6eb;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.hot-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid #e5e6eb;
}

.tag-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.tag-item {
    font-size: 13px;
    color: #165dff;
    text-decoration: none;
    padding: 4px 12px;
    background: #f0f7ff;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-item:hover {
    background: #165dff;
    color: white;
    transform: translateY(-2px);
}

.nav {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a.admin-link {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

.nav a.admin-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.nav a.admin-link::after {
    display: none;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.personal-link{
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
}

/* Banner样式 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 1;
}

.banner-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    color: var(--white);
}

.banner-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 6px;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.btn.primary-btn {
    background-color: var(--accent-color);
    font-weight: 600;
    padding: 12px 35px;
}

.btn.primary-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.btn.consult-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(22, 93, 255, 0.2);
    margin-top: 15px;
}

.btn.consult-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.3);
}

.btn.consult-btn i {
    margin-right: 8px;
}

/* 协会简介样式 */
.about-section {
    padding: 40px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    font-size: 16px;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.about-text p {
    font-size: 15px;
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    max-height: 150px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 服务清单样式 */
.services-section {
    padding: 80px 0;
    background-color: var(--light-gray);
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.services-scroll {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.services-scroll:hover {
    animation-play-state: paused;
}

.services-scroll-container {
    overflow: hidden;
    padding: 20px 0;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 13.333px);
    min-width: 300px;
    max-width: 400px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.service-card .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.service-card .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 商机中心样式 */
.business-section {
    padding: 80px 0;
    background-color: var(--white);
}

.business-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e6eb;
}

.business-tab {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.business-tab.active {
    color: var(--primary-color);
}

.business-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.business-card {
    background-color: var(--white);
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.business-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.business-card h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.business-card p {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 分类标签样式 */
.category-tag {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid #d9d9d9;
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.category-tag.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    background-color: var(--white);
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
}

.page-link.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    border-color: #e5e6eb;
    cursor: not-allowed;
}

.page-info {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.news-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: 4.8em;
    min-height: 4.8em;
}

.business-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #909399;
}

/* 企业库和资源库样式 */
.enterprise-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.enterprise-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e6eb;
}

.enterprise-tab {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.enterprise-tab.active {
    color: var(--primary-color);
}

.enterprise-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.policy-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e6eb;
}

.policy-tab {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.policy-tab.active {
    color: var(--primary-color);
}

.policy-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.enterprise-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.enterprise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.enterprise-image {
    height: 180px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.enterprise-image:hover {
    opacity: 0.9;
}

.enterprise-image img {
    max-width: 100%;
    max-height: 100%;
}

.enterprise-info {
    padding: 20px;
}

.enterprise-info h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.enterprise-info h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.enterprise-info h3 a:hover {
    color: var(--primary-color);
}

.enterprise-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 8px;
}

.enterprise-type {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 8px;
    margin-left: 8px;
}

.enterprise-info p {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 89.6px;
}

/* 政策服务样式 */
.policy-section {
    padding: 80px 0;
    background-color: var(--white);
}

.policy-list {
    max-width: 1000px;
    margin: 0 auto;
}

.policy-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.policy-item:hover {
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.policy-item a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.policy-item a:hover {
    color: var(--primary-color);
}

.policy-date {
    font-size: 14px;
    color: #909399;
}

/* 联系我们样式 */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.contact-category {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-header i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 10px;
}

.category-header h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 0;
}

.category-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(22, 93, 255, 0.1);
    transform: translateX(5px);
}

.contact-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0;
}

.contact-phone {
    font-size: 14px;
    color: var(--dark-gray);
    margin: 0;
}

.contact-email {
    font-size: 14px;
    color: var(--dark-gray);
    margin: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 18px;
    color: var(--primary-color);
}

.contact-details h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 14px;
    color: var(--dark-gray);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

/* 搜索表单样式 */
.search-form {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-form .form-group {
    margin-bottom: 0;
}

.search-form .form-group label {
    font-size: 13px;
    margin-bottom: 5px;
}

.search-form .form-group input,
.search-form .form-group select {
    padding: 8px 12px;
    font-size: 14px;
}

.search-form button {
    padding: 8px 20px;
    height: 38px;
    margin-top: 0;
}

.search-form a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin-top: 0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: #ff4d4f;
    margin-left: 4px;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #f0f9ff;
    border: 1px solid #b7eb8f;
    color: #096dd9;
}

.alert-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

/* 搜索表单样式 */
.news-announcement-section {
    padding: 60px 0;
    background-color: var(--white);
}

.news-announcement-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.news-left {
    flex: 2;
    min-width: 0;
}

.announcement-right {
    flex: 1;
    min-width: 0;
}

.news-carousel {
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.carousel-item {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-content {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.carousel-image {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-text {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-text h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-text p {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: auto;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #86909c;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d9d9d9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.section-footer {
    text-align: center;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 420px;
    overflow-y: auto;
    padding-right: 5px;
}

.announcement-item {
    display: block;
    background-color: #f7f8fa;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.announcement-item:hover {
    background-color: #e8f3ff;
    text-decoration: none;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.announcement-header h4 {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-date {
    font-size: 12px;
    color: var(--primary-color);
    background-color: rgba(22, 93, 255, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
    flex-shrink: 0;
}

.announcement-preview {
    font-size: 13px;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 页脚样式 */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .admin-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.footer-bottom .admin-link:hover {
    color: var(--primary-color);
}

/* 协会介绍详情页面样式 */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.about-detail {
    background-color: var(--white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.about-detail-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

.about-detail-header h1 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-detail-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.about-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-gray);
    font-size: 15px;
}

.about-detail-meta i {
    color: var(--primary-color);
}

.about-detail-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.about-detail-meta a:hover {
    text-decoration: underline;
}

.about-detail-image {
    margin-bottom: 40px;
    text-align: center;
}

.about-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-detail-section {
    margin-bottom: 40px;
}

.about-detail-section h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.about-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.about-detail-content p {
    margin-bottom: 15px;
}

.about-detail-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.about-detail-contact h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 6px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-item span {
    font-size: 16px;
    color: var(--dark-gray);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .banner-content h2 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .about-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .header-main {
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }

    .search-box {
        max-width: 100%;
        margin: 0;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav li {
        margin: 0 15px;
    }

    .banner {
        height: 500px;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 400px;
    }
}

/* 留言管理样式 */
.admin-section {
    padding: 60px 0;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.message-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.message-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.message-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--dark-gray);
}

.message-contact i {
    color: var(--primary-color);
}

.message-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff7e6;
    color: #ff7d00;
}

.status-replied {
    background-color: #e8ffea;
    color: #00b42a;
}

.message-time {
    font-size: 13px;
    color: var(--dark-gray);
}

.message-content {
    padding: 20px;
}

.message-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.message-text {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    padding: 12px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.message-reply {
    padding: 0 20px 20px;
    border-top: 1px solid var(--light-gray);
}

.message-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background-color: var(--light-gray);
}

.btn-reply {
    background-color: var(--primary-color);
    color: white;
}

.btn-delete {
    background-color: #ff4d4f;
    color: white;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--secondary-color);
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.message-preview {
    padding: 12px;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.btn-cancel {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 992px) {
    .banner-content {
        left: 5%;
        max-width: 90%;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-grid {
        grid-template-columns: 1fr;
    }

    .news-announcement-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .carousel-content {
        flex-direction: column;
        min-height: auto;
    }

    .carousel-image {
        width: 100%;
        height: 200px;
    }

    .carousel-image img {
        width: 100%;
        min-height: 200px;
    }

    .carousel-text {
        width: 100%;
        padding: 20px;
    }

    .carousel-text h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 300px;
    }

    .banner-content h2 {
        font-size: 20px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .about-section,
    .services-section,
    .business-section,
    .enterprise-section,
    .policy-section,
    .contact-section {
        padding: 60px 0;
    }
}

/* 后台管理样式 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px;
    flex-shrink: 0;
}

.admin-logo {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo h2 {
    font-size: 24px;
    color: var(--white);
    margin: 0;
}

.admin-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: var(--primary-color);
}

.admin-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background-color: #f5f5f5;
    overflow-y: auto;
}

.admin-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: var(--secondary-color);
    font-size: 28px;
    margin: 0;
}

.admin-body {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.edit-btn:hover {
    background-color: var(--primary-color);
}

.delete-btn {
    background-color: #e74c3c;
    color: var(--white);
}

.delete-btn:hover {
    background-color: #c0392b;
}

.toggle-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.toggle-btn:hover {
    background-color: var(--primary-color);
}

.table-info {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 14px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.admin-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    background-color: var(--white);
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.admin-pagination .page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.admin-pagination .page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
}

.admin-pagination .page-link.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    border-color: #e5e6eb;
    cursor: not-allowed;
}

.admin-pagination .page-info {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 500;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.add-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #2ecc71;
    color: var(--white);
}

.status-inactive {
    background-color: #95a5a6;
    color: var(--white);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    margin-right: 10px;
}

.form-actions .btn:last-child {
    margin-right: 0;
}

/* 详情页面样式 */
.detail-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.detail-header {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--dark-gray);
    flex-wrap: wrap;
}

.detail-meta span {
    display: flex;
    align-items: center;
}

.detail-meta span i {
    margin-right: 5px;
    color: var(--primary-color);
}

.detail-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.detail-image {
    margin-bottom: 30px;
}

.detail-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-description {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.detail-description h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.detail-description p {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.8;
}

.detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.detail-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.detail-text p {
    margin-bottom: 15px;
}

.detail-text h1,
.detail-text h2,
.detail-text h3,
.detail-text h4,
.detail-text h5,
.detail-text h6 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.detail-info {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.detail-info h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.detail-info h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.detail-info p {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.website-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.website-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.detail-attachment {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.detail-attachment h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.detail-attachment h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.attachment-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.attachment-link i {
    margin-right: 8px;
}

.detail-text ul,
.detail-text ol {
    margin: 15px 0;
    padding-left: 30px;
}

.detail-text li {
    margin-bottom: 10px;
}

.detail-info {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e6eb;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 100px;
    flex-shrink: 0;
}

.info-value {
    color: var(--dark-gray);
    flex: 1;
}

.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-source {
    font-size: 14px;
    color: var(--dark-gray);
}

.detail-source span {
    font-weight: 600;
    color: var(--secondary-color);
}

.detail-actions {
    display: flex;
    gap: 10px;
}

/* 后台管理响应式设计 */
@media (max-width: 992px) {
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 15px;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-nav a {
        margin-bottom: 0;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-header h1 {
        font-size: 24px;
    }

    .admin-body {
        padding: 20px;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    .detail-header {
        padding: 20px;
    }

    .detail-header h1 {
        font-size: 24px;
    }

    .detail-content {
        padding: 20px;
    }

    .detail-footer {
        flex-direction: column;
        gap: 15px;
    }
}

.party-hero {
    background: url('/img/party-banner.jpg') center/cover no-repeat;
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 200px;
    margin-top: 50px;
    cursor: pointer;
}

.party-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.1;
}

.party-hero h1 {
    font-size: 50px;
    color: red;
    position: relative;
    z-index: 1;
    font-family:'仿宋';
}

.party-hero p {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.9;
    color: red;
    position: relative;
    z-index: 1;
}