:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f97316;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --gray-color: #94a3b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #334155;
}

.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card-text {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 1;
}

.featured-article {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    margin-bottom: 30px;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.broker-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
}

.broker-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.broker-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.ad-banner {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.ad-banner:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.ad-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.ad-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-meta {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.pagination .page-item .page-link {
    color: var(--primary-color);
    border: 1px solid #cbd5e1;
    margin: 0 5px;
    border-radius: 8px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: aliceblue;
}

.related-article {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.related-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.error-container {
    padding: 30px;
    background: #ffeef0;
    border-radius: 10px;
    margin: 20px 0;
}

.article-image {
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.col-lg-4{
    height: max-content;
}

.article-thumbnail {
    width: 125px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.td.text-truncate {
    max-width: 200px; /* 可根据需要调整 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 券商添加样式 */



.container {
    max-width: 1200px;
    width: 100%;
}

.ad-banner {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 50px 30px;
    margin: 30px 0;
    color: white;
}

.ad-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,128L48,122.7C96,117,192,107,288,106.7C384,107,480,117,576,133.3C672,149,768,171,864,170.7C960,171,1056,149,1152,133.3C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
}

.position-relative.z-index-1 {
    position: relative;
    z-index: 1;
}

.ad-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ad-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.broker-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.broker-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.broker-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.galaxy-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.broker-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.broker-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.broker-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.broker-features li:last-child {
    border-bottom: none;
}

.broker-features li i {
    margin-right: 8px;
    color: #ffd43b;
}

.btn-galaxy {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #2c3e50;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-galaxy:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #1a2980;
}

.btn-galaxy i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-galaxy:hover i {
    transform: translateX(5px);
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff512f 0%, #f09819 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(240, 152, 25, 0.4);
    animation: pulse 2s infinite;
}

.security-note {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-note i {
    margin-right: 8px;
    color: #a3e635;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 152, 25, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(240, 152, 25, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(240, 152, 25, 0);
    }
}

@media (max-width: 768px) {
    .ad-title {
        font-size: 2.2rem;
    }

    .ad-subtitle {
        font-size: 1.1rem;
    }

    .broker-container {
        flex-direction: column;
        align-items: center;
    }

    .broker-item {
        width: 100%;
        max-width: 400px;
    }
}