/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffa726);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container img {
    height: 60px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* 轮播图样式 */
.carousel-section {
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease-in-out;
    display: flex;
    align-items: stretch;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-image {
    flex: 0 0 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-slide.active .carousel-image img {
    transform: scale(1.02);
}

.carousel-content {
    flex: 1;
    padding: 3rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa726 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.carousel-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(255, 140, 66, 0.9));
    z-index: 1;
}

.carousel-content > * {
    position: relative;
    z-index: 2;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 3;
    overflow: hidden;
}

.page-btn:hover:not(:disabled),
.page-btn.current {
    background: linear-gradient(135deg, #ff6b35, #ffa726);
    border-color: transparent;
    color: white;
}


.carousel-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    align-self: flex-start;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}


/* 链接样式 */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 特色新闻卡片 */
.featured-news {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    overflow: hidden;
    position: relative;
}

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

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

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.news-card-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6; /* 限制行数为6 */
    line-clamp: 6; /* 标准属性 */
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.news-card-date {
    color: #ff6b35;
}

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff8c42;
}

/* 资讯列表页样式 */
.news-list-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.news-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-item {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.news-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-item-image {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    margin-right: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

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

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.news-item-title:hover {
    color: #ff6b35;
}

.news-item-excerpt {
    color: #666;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex: 1;
}

.news-item-meta {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.news-item-date {
    color: #ff6b35;
    font-weight: 500;
}

.news-item-views {
    color: #999;
}

/* 分页样式 */
.pagination-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
}

/* Laravel 分页组件样式重写 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #ff6b35;
    background: white;
}

.pagination a:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 当前页样式 */
.pagination .active span {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-color: #ff6b35;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    font-weight: 700;
    position: relative;
}

.pagination .active span:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42, #ffa726, #ff6b35);
    border-radius: 10px;
    z-index: -1;
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* 禁用状态 */
.pagination .disabled span {
    color: #ccc;
    border-color: #e9ecef;
    background: #f8f9fa;
    cursor: not-allowed;
}

.pagination .disabled span:hover {
    transform: none;
    box-shadow: none;
}

/* 省略号样式 */
.pagination .disabled span[aria-hidden="true"] {
    border: none;
    background: transparent;
    color: #999;
}

/* 上一页/下一页按钮 */
.pagination a[rel="prev"],
.pagination a[rel="next"] {
    font-size: 0.9rem;
    min-width: auto;
    padding: 0.5rem 1.2rem;
}

.pagination a[rel="prev"]:before {
    content: "‹ ";
    margin-right: 0.2rem;
}

.pagination a[rel="next"]:after {
    content: " ›";
    margin-left: 0.2rem;
}

/* 资讯详情页样式 */
.news-detail-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.news-detail-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

.news-detail-meta {
    color: #666;
    font-size: 1rem;
}

.news-detail-meta span {
    margin: 0 1rem;
    color: #ff6b35;
}

.news-detail-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
    text-indent: 4ch;
    line-height: 2.5;
}

.news-detail-content p img{
    display: block;
    margin: auto;
}

.back-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    /* 轮播图响应式 */
    .carousel-container {
        height: auto;
        min-height: 350px;
    }

    .carousel-slide {
        flex-direction: column;
        align-items: stretch;
    }

    .carousel-image {
        flex: 0 0 200px;
        width: 100%;
    }

    .carousel-content {
        flex: 1;
        padding: 2rem 1.5rem;
        min-height: 150px;
    }

    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .carousel-excerpt {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .carousel-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }


    .carousel-indicators {
        bottom: 15px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        padding: 1rem;
    }

    .news-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .news-item-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .news-item-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .news-item-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    /* 分页响应式 */
    .pagination-section {
        margin-top: 2rem;
        padding: 1rem 0;
    }

    .pagination {
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .pagination a[rel="prev"],
    .pagination a[rel="next"] {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }

    /* 移动端选中状态调整 */
    .pagination .active span {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }

    .pagination .active span:before {
        animation: activeGlowMobile 3s ease-in-out infinite alternate;
    }

    @keyframes activeGlowMobile {
        0% {
            opacity: 0.6;
        }
        100% {
            opacity: 0.9;
        }
    }

    .news-detail-container {
        padding: 2rem 1rem;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
