html {
    scroll-behavior: smooth;
}

body {
    background: #f5f7fb;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
    text-decoration: none;
}

.site-topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 14px;
}

.site-topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}

.site-topbar-left,
.site-topbar-right {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.site-topbar a {
    color: #e2e8f0;
}

.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #111827;
}

.site-brand img {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.site-brand h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.site-brand p {
    margin: 4px 0 0;
    color: #64748b;
}

.site-cta {
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.22);
}

.site-nav {
    background: rgba(15, 23, 42, 0.98);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.site-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    padding: 12px 0;
}

.site-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.site-nav-list a {
    color: #e2e8f0;
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.site-nav-list li.active a,
.site-nav-list a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.site-main {
    min-height: 60vh;
    padding-bottom: 40px;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 40px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 28px;
    padding: 40px 0;
}

.site-footer h3 {
    color: #fff;
    margin: 0 0 16px;
}

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

.site-footer-links li {
    margin-bottom: 10px;
}

.site-footer-links a {
    color: #cbd5e1;
}

.site-footer-qrcode img {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
}

.site-footer-copy {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 14px 0;
    font-size: 14px;
}

.panel,
.article-card,
.sidebar-widget,
.card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.panel-heading,
.card-header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
}

.card-body,
.panel-body {
    background: #fff;
}

.btn,
.am-btn {
    border-radius: 12px;
}

.form-control,
textarea.form-control,
input.form-control {
    border-radius: 12px;
    border-color: #dbe4ee;
    box-shadow: none;
}

@media (max-width: 992px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav-toggle {
        display: inline-block;
    }

    .site-nav-list {
        display: none;
        flex-direction: column;
        padding-bottom: 12px;
    }

    .site-nav.open .site-nav-list {
        display: flex;
    }

    .site-brand h1 {
        font-size: 24px;
    }
}
