﻿:root {
    --edugo-primary: #0066ff;
    --edugo-accent: #ff6b6b;
    --edugo-light: #f8f9ff;
    --edugo-dark: #23263b;
}

body {
    font-family: 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--edugo-light);
    color: #333;
}

/* 导航样式 */
.navbar {
    background: linear-gradient(135deg, var(--edugo-dark) 0%, #2d3258 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
}

    .navbar-brand::before {
        content: "✈️";
        margin-right: 10px;
        font-size: 1.5rem;
    }

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    border-radius: 30px;
}

    .nav-link:hover, .nav-link.active {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

/* Banner样式 */
.home-bg {
    background-image: linear-gradient(to bottom, #e7edff 0%, #ffffff 100%);
}

.banner-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 50px rgba(0, 60, 255, 0.1);
}

.banner-img {
    height: 100%;
    object-fit: cover;
    transition: all 1s ease;
}

.banner-card:hover .banner-img {
    transform: scale(1.03);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(60deg, rgba(0, 40, 120, 0.7) 0%, rgba(0, 95, 200, 0.5) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5%;
}

    .banner-overlay h1 {
        font-weight: 800;
        color: white;
        font-size: 3.5rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        line-height: 1.2;
    }

    .banner-overlay p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.4rem;
        max-width: 600px;
        margin: 15px 0 25px;
    }

.banner-btn {
    background: linear-gradient(to right, #ffd166 0%, var(--edugo-accent) 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

    .banner-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    }

    100% {
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    }
}

/* 轮播卡片样式 */
.carousel-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

    .carousel-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 80, 255, 0.15);
        border-color: rgba(0, 102, 255, 0.25);
    }

.carousel-content {
    padding: 30px;
    flex: 1;
}

.carousel-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 102, 255, 0.02) 100%);
    padding: 20px;
}

    .carousel-icon i {
        font-size: 3.5rem;
        color: var(--edugo-primary);
        opacity: 0.7;
    }

/* 分类区块样式 */
.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

    .category-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 70px;
        height: 4px;
        background: var(--edugo-primary);
        border-radius: 10px;
    }

    .category-header h2 {
        font-weight: 800;
        font-size: 2rem;
        color: var(--edugo-dark);
        margin-bottom: 0;
    }

.category-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

    .category-card:hover {
        box-shadow: 0 15px 40px rgba(0, 80, 255, 0.15);
        transform: translateY(-5px);
        border-color: rgba(0, 102, 255, 0.15);
    }

.card-main {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--edugo-primary);
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-excerpt {
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* 新闻列表样式 */
.news-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .news-list-item:hover {
        box-shadow: 0 10px 20px rgba(0, 80, 255, 0.08);
        transform: translateX(5px);
        border-left: 4px solid var(--edugo-accent);
        background-color: #fafdff;
    }

.news-title {
    font-weight: 600;
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 0;
    transition: color 0.2s;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list-item:hover .news-title {
    color: var(--edugo-primary);
}

.news-date {
    color: #7c8db5;
    font-size: 0.95rem;
    min-width: 90px;
    text-align: right;
}

/* 页脚样式 */
.footer {
    background: var(--edugo-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    display: block;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .footer-links a:hover {
        color: white;
        transform: translateX(5px);
    }

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .banner-overlay h1 {
        font-size: 2.8rem;
    }

    .banner-overlay p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .banner-card {
        height: 350px;
    }

    .banner-overlay h1 {
        font-size: 2.2rem;
    }

    .banner-overlay p {
        font-size: 1.1rem;
    }

    .carousel-content .col-md-8 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .banner-card {
        height: 300px;
    }

    .banner-overlay h1 {
        font-size: 1.8rem;
    }

    .banner-overlay p {
        font-size: 1rem;
    }

    .category-header h2 {
        font-size: 1.6rem;
    }
}
.floating-consultation {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
}

.consultation-button {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

    .consultation-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    }

.qr-code-popup {
    position: absolute;
    right: 100%;
    bottom: 0;
    margin-right: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.floating-consultation:hover .qr-code-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.qr-code-content {
    text-align: center;
}

.qr-code-placeholder {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .floating-consultation {
        right: 15px;
        bottom: 80px;
    }

    .consultation-button {
        padding: 10px 12px;
        font-size: 14px;
    }

    .qr-code-popup {
        min-width: 180px;
        padding: 15px;
    }
}





.news-list-page {
    background: linear-gradient(135deg, #f5f8ff 0%, #fafdff 100%);
    min-height: 100vh;
    padding-top: 2rem;
}

.page-header {
    background: white;
    padding: 3rem 0;
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.1);
}

.page-title {
    color: #0066ff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.filter-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-form .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.search-form .btn {
    border-radius: 0 12px 12px 0;
    padding: 1rem 2rem;
    font-weight: 500;
}

.category-filter .dropdown-toggle {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
}

    .category-filter .dropdown-toggle:hover,
    .category-filter .dropdown-toggle:focus {
        border-color: #0066ff;
        background: #f8f9fa;
        color: #0066ff;
        box-shadow: 0 2px 8px rgba(0, 102, 255, 0.15);
    }

.category-filter .dropdown-menu {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.category-filter .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #495057;
    transition: all 0.2s ease;
    border-radius: 0;
}

    .category-filter .dropdown-item:hover {
        background: #f8f9fa;
        color: #0066ff;
    }

    .category-filter .dropdown-item.active {
        background: #0066ff;
        color: white;
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 102, 255, 0.15);
    }

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-category {
    background: #e3f2fd;
    color: #0066ff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    /*margin-bottom: 0.75rem;*/
    line-height: normal;
}

.news-summary {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pagination-wrapper .pagination {
    gap: 0.5rem;
}

.pagination-wrapper .page-link {
    border-radius: 8px;
    border: none;
    padding: 0.75rem 1rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .pagination-wrapper .page-link:hover {
        background: #e9ecef;
        color: #495057;
    }

.pagination-wrapper .page-item.active .page-link {
    background: #0066ff;
    color: white;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-section {
        padding: 1.5rem;
    }
}