/* 全局样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    padding-top: 96px;
    color: #1a1a2e;
    background: #f5f7ff;
}

/* Full-screen particle canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* ===== Site Navigation Bar ===== */
.site-navbar {
    background-color: white !important;
    background-image: none !important;
    transition: all 0.35s ease;
    padding: 4px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    z-index: 1000;
}

.site-navbar .navbar-brand {
    color: #1a1a2e !important;
    font-weight: 700;
    font-size: 1.3rem;
    transition: color 0.35s ease;
    display: flex;
    align-items: center;
}

.site-navbar .navbar-brand .logo-img {
    display: block;
}

.site-navbar .navbar-brand i {
    color: #667eea;
    transition: color 0.35s ease;
}

.site-navbar .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    padding: 4px 14px !important;
    transition: all 0.3s ease;
    position: relative;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #667eea !important;
}

.site-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.site-navbar .nav-link.nav-cta-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 50px;
    padding: 10px 24px !important;
    margin-left: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.site-navbar .nav-link.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.site-navbar .nav-link.nav-cta-btn::after {
    display: none;
}

.site-navbar .nav-link.nav-cta-btn i {
    margin-right: 6px;
}

.site-navbar .navbar-toggler {
    border-color: #e2e8f0 !important;
}

.site-navbar .navbar-toggler-icon {
    filter: none;
}

/* Logo样式 */
.logo-img {
    height: 84px;
    width: auto;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-header .display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header .lead {
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* 卡片样式 */
.card {
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
}

/* 表单样式 */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* 页脚样式 */
.site-footer {
    background: rgba(15, 12, 41, 0.92);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer h3, .site-footer h4 {
    color: white;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-tag {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-list li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-list li a:hover {
    color: #667eea;
}

.footer-list li a i,
.footer-list li a .fa-icon-svg {
    width: 16px;
    text-align: center;
}

.footer-list li .footer-disabled {
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    pointer-events: none;
}

.footer-list li .footer-disabled i,
.footer-list li .footer-disabled .fa-icon-svg {
    width: 16px;
    text-align: center;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact li i {
    color: #667eea;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* ===== Social Item with QR Code ===== */
.social-item {
    position: relative;
    display: inline-block;
}

.social-item > a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.social-item > a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.qrcode-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.social-item:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qrcode-content {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.qrcode-content h5 {
    color: #1a1a2e;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.qrcode-content img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.qrcode-placeholder {
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #94a3b8;
    gap: 8px;
}

.qrcode-placeholder i {
    font-size: 2.5rem;
}

.qrcode-placeholder span {
    font-size: 0.7rem;
}

.qrcode-content p {
    color: #667eea;
    font-size: 0.8rem;
    margin: 10px 0 0;
    font-weight: 500;
}

/* Logo响应式 */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    body {
        padding-top: 72px;
    }
    .site-navbar {
        padding: 6px 0;
    }
    .site-navbar .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    .site-navbar {
        background-color: white !important;
        background-image: none !important;
        padding: 8px 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .site-navbar .navbar-brand {
        color: #1a1a2e !important;
        font-size: 1.05rem;
    }
    .site-navbar .navbar-brand i {
        color: #667eea;
    }
    .site-navbar .navbar-toggler {
        border-color: #e2e8f0 !important;
        padding: 6px 10px;
    }
    .site-navbar .navbar-toggler-icon {
        filter: none;
        width: 1.2em;
        height: 1.2em;
    }
    body.page-home .site-navbar {
        background-color: white !important;
        padding: 8px 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    body.page-home .site-navbar .navbar-brand {
        color: #1a1a2e !important;
    }
    body.page-home .site-navbar .navbar-brand i {
        color: #667eea;
    }
    /* Mobile navbar dropdown */
    .site-navbar .navbar-collapse {
        background: white;
        border-radius: 16px;
        padding: 12px;
        margin-top: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid #e2e8f0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .site-navbar .navbar-collapse .nav-item {
        border-bottom: 1px solid #f1f5f9;
    }
    .site-navbar .navbar-collapse .nav-item:last-child {
        border-bottom: none;
    }
    .site-navbar .navbar-collapse .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 500;
        color: #334155 !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .site-navbar .navbar-collapse .nav-link:hover,
    .site-navbar .navbar-collapse .nav-link.active {
        color: #667eea !important;
        background: #f8fafc;
        border-radius: 10px;
    }
    .site-navbar .navbar-collapse .nav-link.nav-cta-btn {
        margin: 8px 0 4px;
        text-align: center;
        justify-content: center;
    }
    .site-navbar .navbar-collapse .nav-link.nav-cta-btn::after {
        display: none;
    }
    /* Footer mobile */
    .site-footer {
        padding: 40px 0 0;
    }
    .site-footer .row > [class*="col-"] {
        margin-bottom: 28px;
    }
    .site-footer .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .footer-title {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    .footer-list li {
        margin-bottom: 10px;
    }
    .footer-bottom {
        margin-top: 24px;
        padding: 16px 0;
    }
    .footer-bottom .row {
        text-align: center;
    }
    .footer-bottom .col-md-6.text-end {
        text-align: center !important;
        margin-top: 16px;
    }
    .footer-social {
        justify-content: center;
    }
    .copyright {
        font-size: 0.8rem;
    }
    .footer-desc {
        font-size: 0.9rem;
    }
    /* Qrcode popup on mobile - tap to show */
    .social-item.active .qrcode-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    .logo-img {
        height: 42px;
    }
    .site-navbar .navbar-brand {
        font-size: 0.95rem;
    }
    .site-footer {
        padding: 32px 0 0;
    }
    .site-footer .row > [class*="col-"] {
        margin-bottom: 14px;
    }
    .footer-brand {
        text-align: left;
        margin-bottom: 0;
    }
    .footer-logo {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    .footer-desc {
        font-size: 0.74rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 6px;
    }
    .footer-tag {
        font-size: 0.72rem;
    }
    .footer-title {
        font-size: 0.84rem;
        margin-bottom: 8px;
    }
    .footer-list li {
        margin-bottom: 4px;
        font-size: 0.76rem;
    }
    .footer-list li a,
    .footer-list li .footer-disabled {
        font-size: 0.76rem;
        gap: 5px;
    }
    .footer-contact li {
        font-size: 0.74rem;
        gap: 6px;
        margin-bottom: 5px;
        line-height: 1.4;
    }
    .footer-contact li i {
        font-size: 0.85rem;
    }
    .footer-bottom {
        margin-top: 16px;
        padding: 14px 0;
    }
    .copyright {
        font-size: 0.72rem;
        line-height: 1.5;
    }
    .footer-social {
        gap: 10px;
        margin-top: 10px;
    }
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Ensure main content and footer are above particle canvas */
main {
    position: relative;
    z-index: 10;
}

.site-footer {
    position: relative;
    z-index: 10;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}