/**
 * Main Stylesheet - 科技协会风格
 * 珠海市科技发展促进会
 * Dependencies: variables.css, Bootstrap 5
 */

/* ========== Base & Reset ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-soft);
    color: var(--color-gray-700);
    line-height: 1.6;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    color: var(--color-gray-800);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}


/* ========== Header Top Bar ========== */
.header_t {
    background: var(--gradient-header);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    font-size: var(--text-sm);
}

.header_t a {
    color: rgba(255, 255, 255, 0.9);
}

.header_t a:hover {
    color: #fff;
}

.header_t .top-contacts {
    margin: 0;
    padding: 0;
}

.header_t .top-contacts li {
    display: inline-block;
    margin-right: 24px;
}

.header_t .top-contacts li i {
    margin-right: 6px;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-row .top-left {
    display: flex;
    align-items: center;
}

.header-row .top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-row .current-time {
    font-weight: 500;
}

.header-row .right-line {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

/* Weather Widget */
.weather-widget {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-widget span {
    opacity: 0.9;
}

/* WeChat QR Code */
.wechat-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.wechat-wrapper .iconfont {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.wechat-wrapper:hover .iconfont {
    transform: scale(1.1);
}

.wechat-qrcode {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1050;
    padding-top: 12px;
}

.wechat-wrapper:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.wechat-qrcode .qrcode-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    width: 160px;
}

.wechat-qrcode .qrcode-box::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.wechat-qrcode .qrcode-img {
    width: 100%;
    border-radius: var(--radius-md);
}

.wechat-qrcode .qrcode-caption {
    margin-top: 10px;
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    font-weight: 500;
}

/* ========== Fixed Header ========== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.fixed-header-spacer {
    height: 0;
}

/* ========== Navbar - 科技风格 ========== */
.gheader.navbar {
    background: var(--color-white);
    padding: 0;
    box-shadow: var(--shadow-md);
}

.gheader .navbar-brand {
    padding: 12px 0;
}

.gheader .navbar-brand .logo-img {
    height: 56px;
    width: auto;
    transition: transform var(--transition-fast);
}

.gheader .navbar-brand:hover .logo-img {
    transform: scale(1.02);
}

.gheader .navbar-nav .nav-link {
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 15px;
    padding: 24px 18px;
    position: relative;
    transition: all var(--transition-fast);
}

.gheader .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.gheader .navbar-nav .nav-link:hover {
    color: var(--color-primary);
}

.gheader .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.gheader .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    margin-top: 0;
    padding: 0;
    /* Reduced padding */
    min-width: 200px;
    /* Slightly wider */
    display: none;
    /* Ensure hidden by default */
}

.gheader .dropdown-item {
    padding: 12px 20px;
    /* Comfortable click area */
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    /* Prepare for hover accent */
}

.gheader .dropdown-item:hover {
    background: var(--color-bg-soft);
    /* Softer hover bg */
    color: var(--color-primary);
    padding-left: 24px;
    /* Slight movement */
    border-left-color: var(--color-primary);
    /* Accent line */
}

/* Navbar Toggler */
.gheader .navbar-toggler {
    border: 2px solid var(--color-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
}

.gheader .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230052cc' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navbar */
@media (max-width: 991px) {
    .gheader .navbar-nav .nav-link {
        padding: 14px 16px;
        border-bottom: 1px solid var(--color-gray-100);
    }

    .gheader .navbar-nav .nav-link::after {
        display: none;
    }

    .gheader .navbar-collapse {
        background: var(--color-white);
    }
}

/* Search */
/* Search */
.search-toggle-wrapper .nav-link {
    padding: 24px 16px;
}

.search-box-wrapper {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: none;
    z-index: 1050;
    min-width: 340px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box-wrapper.active {
    display: block;
    animation: simpleFadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes simpleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0 16px;
    height: 46px;
    font-size: 15px;
    transition: all 0.2s;
    color: #333;
}

.search-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.search-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn i {
    font-size: 18px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    color: #999;
    font-size: 24px;
    line-height: 1;
    transition: color 0.2s;
    margin-left: -5px;
}

.search-close:hover {
    color: #333;
}

/* ========== Carousel ========== */
#heroCarousel {
    border-radius: 0;
    overflow: hidden;
}

#heroCarousel .carousel-caption {
    background: rgba(0, 82, 204, 0.9);
    border-radius: var(--radius-lg);
    padding: 16px 32px;
    bottom: 30px;
    backdrop-filter: blur(10px);
}

#heroCarousel .carousel-caption h3 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ========== Section Titles ========== */
.section-title {
    color: var(--color-gray-800);
    font-size: var(--text-2xl);
    font-weight: 700;
    position: relative;
    padding-left: 16px;
    margin-bottom: var(--spacing-lg);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ========== Introduction Section ========== */
.introduction-fullscreen {
    padding: var(--spacing-3xl) 0;
    background: var(--color-white);
}

.introduction-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.introduction-title {
    color: var(--color-gray-800);
    font-size: var(--text-2xl);
    font-weight: 700;
    position: relative;
    padding-left: 16px;
    margin-bottom: var(--spacing-lg);
}

.introduction-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.introduction-description {
    line-height: 1.8;
    color: var(--color-gray-600);
    font-size: var(--text-base);
}

.introduction-description p {
    text-indent: 2em;
    margin-bottom: 1em;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.3);
}

.learn-more-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

/* ========== VIP List Section ========== */
.viplist-fullscreen {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-soft);
}

.viplist-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.viplist-header {
    text-align: center;
}

.viplist-title {
    color: var(--color-gray-800);
    font-size: var(--text-2xl);
    font-weight: 700;
    position: relative;
    padding-left: 16px;
    display: inline-block;
}

.viplist-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.viplist-subtitle {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
    margin-top: 8px;
}

.viplist-button {
    text-align: center;
}

/* ========== Footer ========== */
.footer-section {
    background: var(--gradient-primary);
    /* Restore Blue Gradient */
    color: #fff;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
    /* Contain pseudo element */
}

/* Background Image Overlay */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/footer.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    /* Adjust transparency to blend with gradient */
    z-index: 0;
    pointer-events: none;
}

.footer-section .container {
    position: relative;
    z-index: 1;
    /* Ensure text is above background */
}

.footer-title {
    color: #fff;
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    /* Softer border */
    display: inline-block;
}

/* Footer About */
.footer-about .footer-title {
    border-bottom-color: var(--color-accent);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
}

.footer-contact .contact-item i {
    color: var(--color-accent);
    font-size: 16px;
    width: 20px;
}

/* Quick Links */
.quick-links {
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.quick-links li a::before {
    content: '›';
    margin-right: 8px;
    color: var(--color-accent);
    font-weight: bold;
}

.quick-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Footer QR Code */
.footer-qrcode .qr-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-qrcode .qr-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-fast);
}

.footer-qrcode .qr-image:hover {
    transform: scale(1.05);
}

.footer-qrcode .qr-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-qrcode .qr-label {
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--text-sm);
}

.footer-qrcode .qr-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
}

/* ========== Copyright ========== */
.copyright-section {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 0;
    font-size: var(--text-sm);
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
}

.copyright-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

.copyright-links .icp-info,
.copyright-links .gongan-info {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.copyright-links .icp-info:hover,
.copyright-links .gongan-info:hover {
    color: var(--color-accent);
}

/* ========== Cards - 科技风格 ========== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card-header {
    background: var(--color-white);
    border-bottom: 2px solid var(--color-primary-lighter);
    font-weight: 600;
    padding: 16px 20px;
}

.card-header.bg-primary {
    background: var(--gradient-primary) !important;
    border-bottom: none;
}

/* List Group Items */
.list-group-item {
    border: none;
    border-bottom: 1px solid var(--color-gray-100);
    padding: 12px 20px;
    transition: all var(--transition-fast);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover:not(.active) {
    background: var(--color-primary-lighter);
    padding-left: 24px;
}

.list-group-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
}


/* ========== CAST Style Homepage ========== */

/* Section Card */
.section-card {
    background: #fff;
    padding: 20px;
    border-top: 2px solid var(--color-primary);
    /* CAST Style Blue Top Border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: 12px;
    margin-bottom: 16px;
    position: relative;
}

.section-title-sm {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
    line-height: 1.2;
}

.section-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--color-gray-500);
}

.section-more:hover {
    color: var(--color-primary);
}

/* Headline News in List */
.headline-news {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--color-gray-200);
}

.headline-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
}

.headline-title a {
    color: var(--color-gray-800);
}

.headline-title a:hover {
    color: var(--color-primary);
}

.headline-summary {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0;
}

.read-more {
    color: var(--color-primary);
    margin-left: 5px;
}

/* News List Items */
.news-list-items {
    padding: 0;
    margin: 0;
}

.news-list-items li {
    margin-bottom: 12px;
}

.news-list-items li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-gray-700);
    font-size: 15px;
}

.news-list-items li a:hover {
    color: var(--color-primary);
}

.news-list-items li a:hover .news-title {
    color: var(--color-primary);
}

.news-title {
    position: relative;
    padding-left: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 75%;
}

.news-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-gray-400);
    border-radius: 50%;
}

.news-list-items li a:hover .news-title::before {
    background: var(--color-primary);
}

.news-date {
    font-size: 13px;
    color: var(--color-gray-400);
}

/* Service Links Grid */
.service-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0;
}

.service-links-grid li a {
    display: flex;
    align-items: center;
    background: var(--color-gray-50);
    padding: 15px;
    border-radius: 4px;
    color: var(--color-gray-700);
    font-weight: 500;
    transition: all 0.2s;
}

.service-links-grid li a i {
    font-size: 20px;
    color: var(--color-primary);
    margin-right: 10px;
}

.service-links-grid li a:hover {
    background: var(--color-primary);
    color: #fff;
}

.service-links-grid li a:hover i {
    color: #fff;
}

/* Home Intro */
.home-intro-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray-600);
}

.home-intro-text p {
    margin-bottom: 15px;
}

.intro-btn {
    display: inline-block;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    transition: all .2s;
}

.intro-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Carousel Adjustments */
.hero-carousel-wrapper {
    height: 100%;
}

.hero-carousel-wrapper .carousel,
.hero-carousel-wrapper .carousel-inner,
.hero-carousel-wrapper .carousel-item {
    height: 100%;
}

.hero-carousel-wrapper .carousel-image-container {
    height: 380px;
    /* Fixed height for CAST style consistency */
    overflow: hidden;
}

.hero-carousel-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.article-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-gray-100);
}

.article-title {
    font-size: var(--text-2xl);
    color: var(--color-gray-800);
    margin-bottom: 12px;
    font-weight: 700;
}

.article-meta {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

.article-meta span {
    margin-right: 24px;
}

.article-content {
    line-height: 1.9;
    font-size: 16px;
    color: var(--color-gray-700);
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 1em 0;
}

.empty-state {
    color: var(--color-gray-400);
    text-align: center;
    padding: var(--spacing-3xl) 0;
    font-size: var(--text-lg);
}

/* ========== List Page ========== */
.article-list-title {
    transition: color var(--transition-fast);
    color: var(--color-gray-700);
    font-weight: 500;
}

a:hover .article-list-title {
    color: var(--color-primary);
}

/* ========== Pagination ========== */
.pagination .page-link {
    color: var(--color-gray-600);
    border: 1px solid var(--color-gray-200);
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--color-primary-lighter);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ========== Breadcrumb ========== */
.breadcrumb-section {
    padding: 20px 0 10px 0;
    margin-top: 20px;
    background: transparent;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 16px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: var(--color-primary);
    padding: 0 8px;
}

.breadcrumb .fa-location-dot {
    font-size: 18px;
    margin-right: 6px;
    color: var(--color-primary);
    position: relative;
    top: -1px;
    margin-right: 20px;
}

/* ========== Sidebar Navigation ========== */
.sidebar-nav {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 16px 20px;
    font-size: var(--text-lg);
    font-weight: 600;
}

.sidebar-menu {
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--color-gray-100);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
}

.sidebar-menu li a:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
    padding-left: 24px;
}

.sidebar-menu li.active a {
    background: var(--color-primary-lighter);
    color: var(--color-primary);
    font-weight: 500;
    border-left: 3px solid var(--color-primary);
}

.sidebar-menu .menu-arrow {
    color: var(--color-primary);
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Sidebar New (Hebei Style) */
.sidebar-wrapper {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.sidebar-header-blue {
    background: var(--color-primary);
    color: #fff;
    padding: 30px 0px;
    position: relative;
    border-top-right-radius: 40px;
    text-align: center;
}

.sidebar-header-blue .title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sidebar-menu-vertical {
    list-style: none;
    margin: 0;
    background: #fff;
}

.sidebar-menu-vertical li {
    padding: 0;
}

.sidebar-menu-vertical li a {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    color: #333;
    font-size: 18px;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu-vertical li a .dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 15px;
}

.sidebar-menu-vertical li a .arrow {
    margin-left: auto;
    font-size: 12px;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Sidebar Active/Hover */
.sidebar-menu-vertical li a:hover,
.sidebar-menu-vertical li.active a {
    background: #e3f2fd;
    color: #1565c0;
    border-left-color: #1565c0;
}

.sidebar-menu-vertical li a:hover .dot,
.sidebar-menu-vertical li.active a .dot {
    background: #1565c0;
}

.sidebar-menu-vertical li a:hover .arrow,
.sidebar-menu-vertical li.active a .arrow {
    opacity: 1;
    color: #1565c0;
}

/* ========== Content Card ========== */
.content-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

.content-wrapper-white {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    min-height: 500px;
}

/* ========== Article List ========== */
.article-list {
    padding: 0;
    margin: 0;
}

.article-list li {
    border-bottom: 1px dashed var(--color-gray-200);
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
}

.article-list li a:hover {
    color: var(--color-primary);
}

.article-list li a:hover .article-title-text {
    color: var(--color-primary);
}

.article-list .article-bullet {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 18px;
}

.article-list .article-title-text {
    flex: 1;
    font-size: 15px;
    transition: color var(--transition-fast);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-list .article-date {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    margin-left: 20px;
    flex-shrink: 0;
}

/* Article List Modern (Date Box) */
.article-list-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item-card {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
    transition: transform 0.2s;
}

.article-item-card:hover {
    transform: translateX(5px);
}

.article-item-card:last-child {
    border-bottom: none;
}

.date-box {
    width: 70px;
    height: 70px;
    border: 1px solid #1976d2;
    color: #1976d2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    background: #fff;
}

.date-box .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.date-box .ym {
    font-size: 12px;
    background: #e3f2fd;
    width: 100%;
    text-align: center;
    border-top: 1px solid #e3f2fd;
    background: #fff;
}

.item-content {
    flex: 1;
    overflow: hidden;
}

.item-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.item-title a {
    color: #333;
}

.item-title a:hover {
    color: #1565c0;
}

.item-desc {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Article Detail ========== */
.article-detail {
    padding: 10px 0;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.article-main-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.4;
}

.article-info {
    justify-content: center;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 30px;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.article-info .info-item {
    display: inline-flex;
    align-items: center;
}

.article-info .info-label {
    color: var(--color-gray-400);
}

.article-info .info-value {
    color: var(--color-gray-600);
}

.article-body {
    line-height: 2;
    font-size: 16px;
    color: var(--color-gray-700);
}

.article-body p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1em auto;
    display: block;
}

.article-body h2,
.article-body h3 {
    color: var(--color-primary);
    margin: 1.5em 0 0.8em;
}

/* ========== Pagination ========== */
.pagination-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
}

/* Advanced Pagination */
.pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.pagination-row .pagination {
    margin: 0;
}

.pagination-row .page-item .page-link {
    color: #666;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
    padding: 6px 12px;
}

.pagination-row .page-item.active .page-link {
    background-color: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

.pagination-row .page-item.disabled .page-link {
    color: #ccc;
    background-color: #fff;
    border-color: #eee;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-jump .jump-input {
    width: 60px;
    text-align: center;
    padding: 4px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination-jump .jump-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 4px 12px;
    margin-left: 5px;
    border-radius: 4px;
}

.pagination-jump .jump-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .sidebar-nav {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .content-card {
        padding: 20px;
    }

    .article-main-title {
        font-size: var(--text-xl);
    }

    .article-info {
        gap: 10px;
        font-size: var(--text-xs);
    }

    .article-list .article-date {
        display: none;
    }

    .introduction-fullscreen,
    .viplist-fullscreen {
        padding: var(--spacing-2xl) 0;
    }

    .introduction-title,
    .viplist-title {
        font-size: var(--text-xl);
    }

    .article-title {
        font-size: var(--text-xl);
    }
}

@media print {

    .navbar,
    .footer-section,
    .scroll-to-top {
        display: none;
    }
}

/* ========== CAST 2024 Redesign Styles ========== */

/* 1. Hero Red Banner */
.hero-banner-red {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    /* Red gradient theme */
    min-height: 480px;
    padding-top: 40px;
    padding-bottom: 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
    /* Pull up to navbar if needed */
}

/* Background Elements */
.hero-theme-text {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.hero-theme-text .icon-danghui {
    font-size: 40px;
    color: #ffeb3b;
    /* Gold danghui */
}

.hero-main-carousel {
    max-width: 800px;
    margin: 60px 0 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* Quick Access Cards Overlay */
.hero-quick-access {
    position: absolute;
    right: 0;
    top: 80px;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.access-card h4 {
    color: #fff;
    border-left: 3px solid #ffeb3b;
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

.access-card ul li {
    margin-bottom: 10px;
}

.access-card ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: block;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.2s;
}

.access-card ul li a:hover {
    background: #ffeb3b;
    color: #b71c1c;
}


/* 2. Main News Section Styles */
.section-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.head-title {
    font-size: 22px;
    color: #333;
    font-weight: 700;
    position: relative;
}

.head-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
}

.main-headline h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.main-headline h3 a {
    color: #b71c1c;
}

/* Red Logic */
.main-headline .summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-news-list {
    list-style: none;
    padding: 0;
}

.main-news-list li {
    border-bottom: 1px dashed #eee;
    padding: 10px 0;
    font-size: 15px;
}

.main-news-list li .date {
    float: right;
    /* Legacy float simple fix for layout */
    color: #999;
    font-size: 12px;
}

.main-news-list li a {
    color: #333;
}

.main-news-list li a:hover {
    color: var(--color-primary);
}


/* 3. Service Bar (Blue) */
.service-bar-section {
    background: #1a237e;
    /* Deep Indigo/Blue */
    padding: 30px 0;
    color: #fff;
    margin-bottom: 30px;
}

.service-bar-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.2s;
    min-width: 200px;
}

.service-item:hover {
    opacity: 1;
    color: #fff;
}

.service-item .icon-circle {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .icon-circle i {
    font-size: 24px;
}

.service-info h3 {
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.service-info p {
    font-size: 12px;
    margin: 0;
    opacity: 0.7;
}

.service-banner-item {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    min-width: auto;
}


/* 4. Special Grid */
.special-banner-card {
    display: block;
    height: 140px;
    /* Fixed height for tiles */
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.special-banner-card:hover {
    transform: translateY(-5px);
    color: #fff;
}

.bg-gradient-blue {
    background: linear-gradient(to right, #2196f3, #1976d2);
}

.bg-teal {
    background: #009688;
}

.bg-cyan {
    background: #00bcd4;
}

.special-banner-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.special-banner-card .btn-visual {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
}

.special-mini-card {
    display: block;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.special-mini-card .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.special-mini-card:hover .bg-img {
    transform: scale(1.1);
}

.special-mini-card .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
}

/* Tabs Styling */
.news-tabs-wrapper .nav-tabs {
    border-bottom: 2px solid #eee;
}

.news-tabs-wrapper .nav-link {
    border: none;
    background: none;
    color: #666;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
}

.news-tabs-wrapper .nav-link.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.news-list-simple {
    padding: 15px 0;
    list-style: none;
}

.news-list-simple li {
    margin-bottom: 10px;
}

.news-list-simple li a {
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 14px;
}

.news-list-simple li a:hover {
    color: var(--color-primary);
}

.news-list-simple .news-date {
    color: #999;
    margin-left: 10px;
}

/* Member Simple List */
.member-simple-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.member-simple-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.member-simple-item:last-child {
    border-bottom: none;
}

/* 5. Full Width Carousel Section (Reverted Style) */
.hero-carousel-section {
    width: 100%;
    margin-bottom: 30px;
    background: #000;
}

.hero-carousel-section .hero-carousel-wrapper .carousel-image-container {
    height: 500px;
    /* Taller for full width impact */
    max-height: 60vh;
}

@media (max-width: 768px) {
    .hero-carousel-section .hero-carousel-wrapper .carousel-image-container {
        height: 250px;
    }
}

/* 6. Navbar Hover & Marker Styles */
@media (min-width: 992px) {

    /* Show dropdown on hover */
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Rotate arrow on hover (Using fa-angle-down) */
    .navbar .nav-item.dropdown .fa-angle-down {
        display: inline-block;
        transition: transform 0.2s;
    }

    .navbar .nav-item.dropdown:hover .fa-angle-down {
        transform: rotate(180deg);
        /* Hover: Point up */
        color: var(--color-primary);
    }
}