:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

html {
    scroll-behavior: smooth;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-brand img {
        height: 42px;
        width: auto;
        object-fit: contain;
    }

.nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
    color: var(--text-dark) !important;
    position: relative;
}

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80%;
    }

    .nav-link.active {
        color: var(--primary-color) !important;
    }

.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
    margin-top: 50px
}

    .footer a {
        color: rgba(255,255,255,0.9);
        transition: var(--transition);
    }

        .footer a:hover {
            color: white;
            text-decoration: underline;
        }

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: #0dcaf0;
    }

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1030;
    border: none;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        color: white;
    }

@media (max-width: 767px) {
    .hero-carousel .carousel-item {
        height: 400px;
    }

    .section-title::after {
        left: 0;
        transform: none;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        margin: 0.25rem 0;
    }
}

.banner {
    height: 360px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .banner img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.post-list .list-group {
    border: none;
    padding-left: 3px;
    unicode-bidi: normal !important;
}

.post-list .list-group-item {
    font-size: 14px;
    border: none;
    padding: 8px 8px;
    background: transparent;
    position: relative;
    unicode-bidi: normal !important;
}

    .post-list .list-group-item:not(:last-child)::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        border-bottom: 1px dashed #ccc;
    }

    .post-list .list-group-item:hover {
        background-color: transparent;
    }

.post-list .title {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.post-marquee {
    height: 210px;
    overflow: hidden;
}

a.marquee-item {
    display: inline-block;
    overflow: hidden;
}