/* 首页布局 */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* 轮播图样式 */
.carousel {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: #fff;
}

.slide-content h2 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.slide-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播图按钮样式 */
.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-buttons {
    opacity: 1;
}

.carousel-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.carousel-button i {
    font-size: 16px;
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .carousel {
        flex: none;
    }

    .slide {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .slide {
        height: 240px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-content h2 {
        font-size: 16px;
    }
}

/* 新闻列表样式 */
.news-section {
    flex: 0 0 58.5%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
    padding: 20px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.news-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.news-list {
    list-style: none;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    /* width: 70%; */
    flex: 1;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list a:hover {
    color: var(--primary);
}

.news-list .date {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 社会团体样式 */
.organizations-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.org-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.org-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.org-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.org-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.org-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.org-item img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.org-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.org-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* 标准列表样式 */
.standards-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.standards-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.standards-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-right: 30px;
}

.standards-tabs {
    display: flex;
    flex: 1;
}

.standards-tabs a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 0 15px;
    position: relative;
    transition: color 0.3s;
}

.standards-tabs a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: var(--border-color);
}

.standards-tabs a.active {
    color: var(--primary);
    font-weight: 500;
}

.standards-header .more {
    margin-left: auto;
}

.standards-content {
    height: 395px;
    overflow: hidden;
    position: relative;
}

.standards-list {
    display: none;
    position: relative;
    left: 0;
    transition: all 0.3s ease;
}

.standards-list.active {
    display: block;
    animation: slideIn 0.3s ease forwards;
}

.standards-list.prev {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.standard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.standard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-light) 0%, var(--bg-light) 80%, transparent 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.standard-item:hover::before {
    left: 0;
}

.standard-item:hover {
    padding-left: 15px;
}

.standard-info {
    position: relative;
    z-index: 1;
}

.standard-info h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.standard-item:hover .standard-info h4 {
    color: var(--primary);
}

.standard-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.standard-meta span {
    display: flex;
    align-items: center;
}

.standard-meta i {
    margin-right: 8px;
    color: var(--primary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.standard-item:hover .standard-meta i {
    opacity: 1;
}

.standard-item .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.standard-item .btn i {
    font-size: 12px;
    margin-top: 1px;
    transition: transform 0.3s ease;
}

.standard-item .btn:hover i {
    transform: translateX(3px);
}

/* 友情链接样式 */
.friend-links {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
    padding: 20px;
}

.link-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.link-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.link-item:hover {
    color: var(--primary);
}

@media screen and (max-width: 768px) {
    .standards-content {
        height: auto;
        max-height: 300px;
        overflow-y: auto;
    }

    .standard-item {
        height: auto;
        min-height: 60px;
    }
}

/* 标准化活动空状态 */
.empty-standard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    height: 395px;
}

.empty-standard i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-standard p {
    margin: 0;
    font-size: 14px;
} 