﻿/* Common Styles */

:root {
}

html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    background-color: #FFF;
    font-size: 1rem;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.6;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

/* Title Styles */
.laos-h1 {
    font-size: 3rem;
}

.laos-title {
    font-size: 2.375rem;
    font-weight: 600;
}

.laos-title-h3 {
    font-size: 1.125rem;
}

/* Card Styles */
.laos-card {
    height: 100%;
    border: 0;
    border-radius: 0;
    transition: .3s;
}

.laos-card:hover {
    transform: scale(1.02);
}

.laos-card-img-wrap {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.laos-card-img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: .3s;
}


.laos-card-title {
    font-size: 1.5rem;
}

.laos-a-card:hover .laos-card-title {
    text-decoration: underline;
}

/* Background Mask */
.laos-background-mask-wrap {
    display: block;
    position: relative;
    overflow: hidden;
}

.laos-background-mask {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background-image: url("/assets/images/scientists_bg.13fff720.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: blur(0.375rem);
}

/* Box Shadow */
.laos-box-shadow-sm {
    box-shadow: 0 0 .425rem 0.125rem rgba(var(--bs-body-color-rgb),.045);
}

/* Text Ellipsis */
.yz-text-two-line-ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yz-text-three-line-ellipsis {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    max-height: none !important;
}

/* News card ellipsis fix */
.index-news-card .card-text.yz-text-three-line-ellipsis {
    max-height: calc(1.7em * 3) !important;
    flex: 0 1 auto !important;
}

/* Container Fluid */
.container-fluid {
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
}

/* Header Styles - Custom Implementation */

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(0.625rem);
    border-bottom: 0.125rem solid transparent;
    box-shadow: 0 0.25rem 1.25rem rgba(102, 126, 234, 0.1);
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

#header * {
    box-sizing: border-box;
}

#header:hover {
    box-shadow: 0 0.375rem 1.875rem rgba(102, 126, 234, 0.15);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#header:hover .header-background {
    opacity: 1;
}

.header-nav {
    padding: 1rem 0;
    position: relative;
    z-index: 1001;
    overflow: visible;
}

.header-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
    gap: 2rem;
}

.header-container > .header-menu {
    flex: 1;
}

.header-container > .header-menu > .menu-item:last-child {
    margin-left: auto;
}

@media (max-width: 1200px) {
    .header-container > .header-menu {
        flex: none;
    }
    
    .header-container > .header-menu > .menu-item:last-child {
        margin-left: 0;
    }
}

@media (max-width: 1200px) {
    .header-container > .header-menu {
        flex: none;
    }
    
    .header-container > .header-menu > .menu-item:last-child {
        margin-left: 0;
    }
}

/* Logo Styles */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: auto;
    width: auto;
    max-width: 6.25rem;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.header-logo:hover .logo-img {
    /* Removed color filter for transparent PNG logo */
}

.logo-glow {
    display: none;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

/* Menu Styles */
.header-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1002;
    flex: 1;
}

.header-menu .menu-item:last-child {
    margin-left: auto;
}

.menu-item {
    position: relative;
    z-index: auto;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.menu-link:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.2);
    will-change: transform;
}

.menu-link:hover i {
    transform: scale(1.2);
}

.menu-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.4);
}

.menu-link.active i {
    color: #ffffff;
}

/* Login Button - Special button style (refer to become a member button style) */
.menu-link-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.menu-link-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.menu-link-login:hover::before {
    left: 100%;
}

.menu-link-login i {
    color: #ffffff !important;
    transition: transform 0.3s ease;
}

.menu-link-login span {
    color: #ffffff !important;
}

.menu-link-login:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff !important;
    transform: translateY(-0.25rem);
    box-shadow: 0 0.75rem 1.875rem rgba(102, 126, 234, 0.4);
}

.menu-link-login:hover i {
    color: #ffffff !important;
    transform: translateX(0.25rem);
}

.menu-link-login:hover span {
    color: #ffffff !important;
}

.menu-link-login:active {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.25rem rgba(102, 126, 234, 0.35);
}

/* CTA Button */
.menu-link-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.3);
}

.menu-link-cta i {
    color: #ffffff;
}

.menu-link-cta:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff;
    transform: translateY(-0.1875rem) scale(1.05);
    box-shadow: 0 0.375rem 1.25rem rgba(102, 126, 234, 0.5);
}

.menu-link-cta:hover i {
    color: #ffffff;
}

/* Dropdown Menu */
.menu-item-dropdown {
    position: relative;
    z-index: 1003;
    overflow: visible;
}

/* Ensure dropdown parent has proper stacking context */
.menu-item-dropdown .menu-link-dropdown {
    position: relative;
    z-index: 1003;
}

.menu-link-dropdown {
    padding-right: 2rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.menu-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 12.5rem;
    max-width: 18.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 0.125rem solid rgba(102, 126, 234, 0.2);
    border-radius: 1rem;
    box-shadow: 0 0.75rem 2.5rem rgba(102, 126, 234, 0.2);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1005;
    pointer-events: none;
    white-space: nowrap;
    display: block;
    margin-top: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ensure dropdown doesn't overflow viewport */
.menu-item-dropdown:last-child .dropdown-menu {
    right: 0;
    left: auto;
}

/* Add a bridge area to prevent gap between menu item and dropdown */
.menu-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    z-index: 1004;
    pointer-events: none;
    display: block;
}

.menu-item-dropdown:hover::after {
    pointer-events: auto;
}

/* Show dropdown when hovering over parent menu item or the dropdown itself */
.menu-item-dropdown:hover .dropdown-menu,
.menu-item-dropdown .dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: block !important;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.375rem;
    left: 1.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #ffffff;
    border-left: 0.125rem solid rgba(102, 126, 234, 0.2);
    border-top: 0.125rem solid rgba(102, 126, 234, 0.2);
    transform: rotate(45deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item i {
    color: #667eea;
    width: 1.25rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding-left: 2rem;
    transform: translateX(0.3125rem);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 1.875rem;
    height: 1.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.mobile-toggle span {
    width: 100%;
    height: 0.1875rem;
    background: #2c3e50;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Header Decoration */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.decoration-dot {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.3;
    animation: float-dot 6s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.dot-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float-dot {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(0.3125rem, -0.3125rem) scale(1.1);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-nav {
        position: relative;
        width: 100%;
        max-width: 100%;
    }
    
    .header-container {
        flex-wrap: wrap;
        position: relative;
        width: 100%;
        max-width: 100%;
        align-items: center;
        box-sizing: border-box;
    }
    
    .header-logo {
        margin-right: 1rem;
        order: 1;
        flex-shrink: 0;
        flex-basis: auto;
    }
    
    .mobile-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
        flex-basis: auto;
        align-self: center;
    }
    
    .header-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.25rem;
        order: 3;
        position: static;
        flex-basis: 100%;
        flex: 1 1 100%;
        align-items: stretch;
        min-width: 0;
    }
    
    .header-menu.active {
        display: flex;
    }
    
    .menu-item {
        width: 100% !important;
        flex-shrink: 0;
        max-width: 100% !important;
    }
    
    .menu-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    
    .menu-item-dropdown {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .menu-link-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0.5rem 0 0 1.5rem;
        border-left: 0.1875rem solid rgba(102, 126, 234, 0.2);
        border-radius: 0;
        min-width: auto;
        width: calc(100% - 1.5rem);
        display: block !important;
        pointer-events: auto;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    /* Remove hover effects on mobile */
    .menu-item-dropdown:hover .dropdown-menu {
        display: block !important;
    }
    
    /* Hide the bridge area on mobile */
    .menu-item-dropdown::after {
        display: none;
    }
    
    .dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        border-radius: 0.375rem;
        margin: 0.25rem 0;
    }
    
    .dropdown-item:hover {
        padding-left: 1.5rem;
        transform: translateX(0.3125rem);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    }
    
    .menu-item-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Footer Styles - Enhanced Vibrant Design */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: #ffffff;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 0.1875rem solid rgba(102, 126, 234, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer .container-fluid {
    position: relative;
    z-index: 2;
    max-width: 90rem;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-section {
    position: relative;
    padding: 1rem 0;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.footer-title i {
    color: #ffd700;
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.footer-title-underline {
    width: 3.75rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 0.125rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(255, 215, 0, 0.4);
}

.footer-org-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 36rem;
}

/* Contact Info */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(0.625rem);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(0.3125rem);
    border-color: rgba(255, 215, 0, 0.3);
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.3);
}

.contact-icon i {
    color: #ffffff;
    font-size: 1rem;
}

.contact-content {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-content strong {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-content a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-content a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin-top: 2rem;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn i {
    font-size: 1.1rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-0.3125rem) scale(1.1);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.3);
}

.social-btn:hover i {
    transform: scale(1.2);
}

.social-btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fdb 100%);
}

.social-btn-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-btn-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-btn-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.footer-links a i {
    font-size: 0.75rem;
    color: #ffd700;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(0.3125rem);
    border-color: rgba(255, 215, 0, 0.3);
}

.footer-links a:hover i {
    transform: translateX(0.1875rem);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-divider {
    height: 0.125rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin-bottom: 2rem;
}

.copyright-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.copyright-text i {
    color: #ffd700;
}

.copyright-decoration {
    display: flex;
    gap: 0.5rem;
}

.copyright-decoration i {
    color: #ffd700;
    font-size: 0.75rem;
    animation: twinkle 2s ease-in-out infinite;
}

.copyright-decoration i:nth-child(1) {
    animation-delay: 0s;
}

.copyright-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.copyright-decoration i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Footer Decoration */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float-shape 8s ease-in-out infinite;
}

.shape-1 {
    width: 12.5rem;
    height: 12.5rem;
    top: -3.125rem;
    left: -3.125rem;
    animation-delay: 0s;
}

.shape-2 {
    width: 9.375rem;
    height: 9.375rem;
    bottom: -1.875rem;
    right: -1.875rem;
    animation-delay: 2s;
}

.shape-3 {
    width: 6.25rem;
    height: 6.25rem;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(1.25rem, -1.25rem) scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer .col-md-6,
    .footer .col-md-3 {
        margin-bottom: 2.5rem;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .social-buttons {
        justify-content: center;
    }
    
    .copyright-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transform: translateY(1.25rem);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-0.3125rem) scale(1.1);
    box-shadow: 0 0.5rem 1.5625rem rgba(102, 126, 234, 0.6);
}

.back-to-top:active {
    transform: translateY(-0.1875rem) scale(1.05);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-0.1875rem);
}

/* Responsive - Back to Top Button */
@media (max-width: 767px) {
    .back-to-top {
        width: 2.8125rem;
        height: 2.8125rem;
        bottom: 1.25rem;
        right: 1.25rem;
        font-size: 1.1rem;
    }
}

/* 404 / Error page */
.error-page {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.error-page::before,
.error-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.error-page::before {
    top: -20%;
    right: -8%;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.16) 0%, transparent 70%);
}

.error-page::after {
    bottom: -18%;
    left: -6%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.14) 0%, transparent 70%);
}

.error-page-content {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.error-page-icon {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.75rem;
    border-radius: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0.5rem 1.5rem rgba(102, 126, 234, 0.35);
    animation: errorPageFloat 3s ease-in-out infinite;
}

.error-page-icon i {
    font-size: 2rem;
}

@keyframes errorPageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.5rem);
    }
}

.error-page-code {
    margin: 0 0 0.5rem;
    font-size: clamp(4rem, 12vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.error-page-text {
    margin: 0 auto 2rem;
    max-width: 32rem;
    color: #5a6c7d;
    font-size: 1.05rem;
    line-height: 1.7;
}

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.error-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0.7rem 1.4rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.error-page-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0.35rem 1rem rgba(102, 126, 234, 0.35);
}

.error-page-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.55rem 1.35rem rgba(102, 126, 234, 0.45);
}

.error-page-btn-secondary {
    color: #667eea;
    background: #ffffff;
    border: 0.125rem solid rgba(102, 126, 234, 0.35);
}

.error-page-btn-secondary:hover {
    color: #764ba2;
    border-color: rgba(118, 75, 162, 0.55);
    transform: translateY(-0.125rem);
}

@media (max-width: 768px) {
    .error-page {
        min-height: calc(100vh - 10rem);
        padding: 3.5rem 0;
    }

    .error-page-icon {
        width: 4.5rem;
        height: 4.5rem;
        border-radius: 1.1rem;
        margin-bottom: 1.35rem;
    }

    .error-page-icon i {
        font-size: 1.65rem;
    }

    .error-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-page-btn {
        width: 100%;
    }
}

/* Pagination */
.las-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin-top: 3rem;
    padding-top: 2rem;
}

.las-pager-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.las-pager-link,
.las-pager-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e8ecf1;
    background: #ffffff;
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0.125rem 0.5rem rgba(44, 62, 80, 0.06);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.las-pager-nav {
    gap: 0.4rem;
}

.las-pager-link:hover,
.las-pager-nav:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    text-decoration: none;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.35rem 0.9rem rgba(102, 126, 234, 0.28);
}

.las-pager-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.3);
    pointer-events: none;
}

.las-pager-nav.is-disabled {
    color: #adb5bd;
    background: #f8f9fa;
    border-color: #e9ecef;
    box-shadow: none;
    pointer-events: none;
    opacity: 0.7;
}

.las-pager-ellipsis {
    display: flex;
    align-items: center;
    min-width: 1.5rem;
    color: #8a97a8;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.las-pager-status {
    display: none;
    margin: 0;
    color: #5a6c7d;
    font-size: 0.9rem;
}

.las-pager-status strong {
    color: #2c3e50;
    font-weight: 700;
}

@media (max-width: 768px) {
    .las-pager {
        margin-top: 2rem;
        padding-top: 1.5rem;
        gap: 0.45rem;
    }

    .las-pager-pages,
    .las-pager-nav-text,
    .las-pager-ellipsis {
        display: none;
    }

    .las-pager-status {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        order: 0;
        padding: 0 0.35rem;
    }

    .las-pager-nav {
        min-width: 2.75rem;
        height: 2.75rem;
        padding: 0 0.85rem;
    }
}

/* Element Plus Style Override */
.el-form-item {
    margin-bottom: 1.5rem;
}

.el-form-item__label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.el-input__wrapper {
    padding: 0.625rem 0.9375rem;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    min-height: 2.625rem;
    display: flex;
    align-items: center;
}

.el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #667eea inset;
}

.el-input__wrapper.is-focus {
    box-shadow: 0 0 0 0.125rem rgba(102, 126, 234, 0.2) inset;
}

.el-input__inner {
    height: auto;
    line-height: 1.5;
}

.el-textarea__inner {
    padding: 0.75rem 0.9375rem;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    line-height: 1.6;
}

.el-input,
.el-select {
    width: 100% !important;
}

.el-select .el-input {
    width: 100%;
    height: 2.625rem !important;
}

.el-select__wrapper,
.el-select .el-select__wrapper,
.el-select .el-input__wrapper {
    height: 2.625rem !important;
    min-height: 2.625rem !important;
    max-height: 2.625rem !important;
    padding: 0.625rem 0.9375rem !important;
    font-size: 0.9375rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.el-select__selection,
.el-select .el-select__selection {
    height: 100% !important;
    line-height: 1.375rem !important;
}

.el-select__selected-item,
.el-select .el-select__selected-item {
    line-height: 1.375rem !important;
}

.el-select .el-input__inner {
    height: auto !important;
    line-height: 1.5 !important;
    font-size: 0.9375rem !important;
}

.el-date-editor {
    width: 100% !important;
    margin-bottom: 0;
}

.el-date-editor .el-input__wrapper {
    padding: 0.625rem 0.9375rem !important;
    min-height: 2.625rem !important;
    font-size: 0.9375rem !important;
    display: flex !important;
    align-items: center !important;
}

.el-button {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    height: auto;
    min-height: 2.625rem;
    transition: all 0.3s ease;
}

.el-button--small {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    min-height: 2rem;
}

.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.4);
}

.el-button--primary:hover,
.el-button--primary:focus {
    transform: none;
    background: linear-gradient(135deg, #8093f5 0%, #8f63c4 100%);
    border-color: transparent;
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.55);
}

.el-button--large {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    min-height: 3.125rem;
}

.upload-item .el-upload {
    border: 0.125rem dashed #d1d9e0;
    border-radius: 0.625rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.upload-item .el-upload:hover {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.form-upload.is-upload-full .el-upload--picture-card {
    display: none !important;
}

.form-upload,
.el-form-item__content .form-upload,
.el-form-item__content .el-upload-list {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.el-upload-list__item {
    max-width: 100%;
}

.el-upload__tip {
    margin-top: 0.625rem;
    color: #606266;
    font-size: 0.75rem;
    line-height: 1.5;
}

.el-input-number {
    width: 100% !important;
}

.el-input-number .el-input {
    width: 100%;
}

.el-input-number .el-input__wrapper {
    padding: 0.625rem 0.9375rem !important;
    min-height: 2.625rem !important;
    font-size: 0.9375rem !important;
    display: flex !important;
    align-items: center !important;
}

.el-input-number .el-input__inner {
    height: auto !important;
    line-height: 1.5 !important;
}

/* Image preview dialog */
.image-preview-overlay .el-overlay-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.el-dialog.image-preview-dialog {
    margin: 0 !important;
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.image-preview-dialog .el-dialog__header {
    flex-shrink: 0;
    text-align: center;
}

.image-preview-dialog .el-dialog__body {
    padding: 0.75rem 1rem 1.25rem;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.image-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(90vh - 6.5rem);
}

.image-preview-body img {
    max-width: 100%;
    max-height: calc(90vh - 6.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .el-dialog.image-preview-dialog {
        max-width: 96vw;
    }

    .image-preview-body,
    .image-preview-body img {
        max-height: calc(88vh - 5.5rem);
    }
}

/* Rich text content */
.content-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-body > *:first-child {
    margin-top: 0;
}

.content-body > *:last-child {
    margin-bottom: 0;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.35;
    margin: 1.75rem 0 0.75rem;
}

.content-body h1 { font-size: 1.875rem; }
.content-body h2 { font-size: 1.625rem; }
.content-body h3 { font-size: 1.375rem; }
.content-body h4 { font-size: 1.1875rem; }
.content-body h5 { font-size: 1.0625rem; }
.content-body h6 { font-size: 1rem; }

.content-body p {
    margin: 0 0 1.25rem;
}

.content-body a {
    color: #1b4f72;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.content-body a:hover {
    color: #0e2f44;
}

.content-body strong,
.content-body b {
    font-weight: 700;
}

.content-body em,
.content-body i {
    font-style: italic;
}

.content-body ul,
.content-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.75rem;
}

.content-body li {
    margin-bottom: 0.4rem;
}

.content-body li > ul,
.content-body li > ol {
    margin: 0.4rem 0 0;
}

.content-body blockquote {
    margin: 1.5rem 0;
    padding: 0.875rem 1.25rem;
    border-left: 0.25rem solid #1b4f72;
    background: #f5f7f9;
    color: #4a5568;
    font-style: italic;
}

.content-body blockquote p:last-child {
    margin-bottom: 0;
}

.content-body hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e5e8eb;
}

.content-body img,
.content-body video {
    display: block;
    /* 相对内容区宽度：不超过父级，且大屏最大 37.5rem（600px @ 16px） */
    max-width: min(100%, 37.5rem);
    height: auto;
    margin: 1.5rem auto;
}

.content-body figure {
    margin: 1.5rem 0;
}

.content-body figure img {
    margin: 0 auto 0.5rem;
}

.content-body figcaption {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.content-body table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95em;
}

.content-body th,
.content-body td {
    padding: 0.625rem 0.75rem;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.content-body th {
    background: #f5f7f9;
    font-weight: 600;
    text-align: left;
}

.content-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    background: #f4f4f4;
    color: #c0392b;
}

.content-body pre {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    border-radius: 0.375rem;
    background: #2c3e50;
    color: #f8f9fa;
}

.content-body pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.875em;
}

.content-body iframe {
    max-width: 100%;
    margin: 1.5rem 0;
}

@media (max-width: 992px) {
    .content-body {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .content-body {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .content-body h1 { font-size: 1.625rem; }
    .content-body h2 { font-size: 1.4rem; }
    .content-body h3 { font-size: 1.2rem; }

    .content-body ul,
    .content-body ol {
        padding-left: 1.35rem;
    }

    .content-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

