html,
body {
    width: 100%;
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 0 !important;
    color: #1f2937;
    background: #f7f8fa;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.mobile-only {
    display: none;
}

.card-nav-container {
    display: none;
    width: 100%;
    padding: 4px 16px 6px;
    position: sticky;
    top: 0;
    z-index: 81;
}

.card-nav {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    height: 60px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
    overflow: hidden;
    transition: height .35s ease;
}

.card-nav-top {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.hamburger-menu {
    width: 40px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.hamburger-menu .hamburger-line {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: transform .2s ease;
}

.hamburger-menu .hamburger-line:first-child {
    transform: translateY(-4px);
}

.hamburger-menu .hamburger-line:last-child {
    transform: translateY(4px);
}

.card-nav.open .hamburger-menu .hamburger-line:first-child {
    transform: rotate(45deg);
}

.card-nav.open .hamburger-menu .hamburger-line:last-child {
    transform: rotate(-45deg);
}

.card-logo {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.card-nav-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 10px;
    padding: 0 14px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.card-nav-content {
    padding: 0 10px 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.card-nav.open .card-nav-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-card {
    background: #1f2937;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-card-label {
    font-size: 16px;
    font-weight: 600;
}

.nav-card-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-card-link {
    font-size: 14px;
    color: #e5e7eb;
}

.nav-card-link:hover {
    color: #fff;
}

.pill-nav-container {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    padding: 4px 0 6px;
}

.pill-nav {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(17, 24, 39, .08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pill-nav.is-entering .pill-logo {
    transform: scale(0.25);
    opacity: 0;
}

.pill-nav.is-entering .pill-nav-items {
    width: 0;
    opacity: 0;
    overflow: hidden;
}

.pill-nav.is-entering .pill-list > li {
    transform: translateY(10px);
    opacity: 0;
}

.pill-nav.is-entered .pill-logo {
    transform: scale(1);
    opacity: 1;
    transition: transform .42s ease, opacity .42s ease;
}

.pill-nav.is-entered .pill-nav-items {
    width: auto;
    opacity: 1;
    overflow: visible;
    transition: width .42s ease, opacity .42s ease;
}

.pill-nav.is-entered .pill-list > li {
    transform: translateY(0);
    opacity: 1;
    transition: transform .35s ease, opacity .35s ease;
    transition-delay: calc(var(--pill-index, 1) * 60ms);
}

.pill-logo {
    flex-shrink: 0;
    min-width: 108px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    transition: transform .25s ease;
}

.pill-nav-items {
    flex: 1;
}

.pill-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pill {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    padding: 10px 16px;
    color: #1f2937;
}

.pill .hover-circle {
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 110%;
    height: 62px;
    border-radius: 999px;
    background: #120f17;
    transform: translateX(-50%) scale(0);
    transform-origin: 50% 100%;
    transition: transform .35s ease;
}

.pill .label-stack {
    position: relative;
    display: block;
    height: 20px;
    overflow: hidden;
}

.pill .pill-label,
.pill .pill-label-hover {
    display: block;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    transition: transform .35s ease, opacity .35s ease;
}

.pill .pill-label {
    color: #111827;
}

.pill .pill-label-hover {
    color: #fff;
    transform: translateY(100%);
    opacity: 0;
}

.pill:hover .hover-circle,
.pill.is-active .hover-circle {
    transform: translateX(-50%) scale(1.1);
}

.pill:hover .pill-label,
.pill.is-active .pill-label {
    transform: translateY(-110%);
}

.pill:hover .pill-label-hover,
.pill.is-active .pill-label-hover {
    transform: translateY(-100%);
    opacity: 1;
}

.pill-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill-user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s ease;
}

.pill-user-link:hover {
    border-color: #4e6ef2;
    color: #4e6ef2;
}

.pill-user-link.is-primary {
    border-color: #4e6ef2;
    color: #fff;
    background: #4e6ef2;
}

.pill-user-link.is-primary:hover {
    background: #3d5de3;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: #f3f4f6;
    border-radius: 10px;
    width: 42px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger-line {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: #111827;
    transition: transform .25s ease;
}

.hamburger-line:first-child {
    transform: translateY(-4px);
}

.hamburger-line:last-child {
    transform: translateY(4px);
}

.is-mobile-open .hamburger-line:first-child {
    transform: rotate(45deg);
}

.is-mobile-open .hamburger-line:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-popover {
    display: none;
    width: calc(100% - 32px);
    max-width: 1120px;
    margin: 10px auto 0;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 12px 26px rgba(17, 24, 39, .1);
    padding: 8px;
}

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

.mobile-menu-link {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.mobile-menu-link.is-active,
.mobile-menu-link:hover {
    background: #eef2ff;
    color: #4e6ef2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.btn-lg {
    font-size: 15px;
    padding: 12px 20px;
}

.btn-primary {
    color: #fff;
    background: #4e6ef2;
}

.btn-primary:hover {
    background: #3d5de3;
}

.btn-ghost {
    color: #4e6ef2;
    background: #eef2ff;
    border-color: #c7d2fe;
}

.btn-ghost:hover {
    background: #e0e7ff;
}

#mainbody {
    padding-bottom: 40px;
    padding-top: 10px;
}

.hero {
    padding: 72px 0 36px;
}

.hero-inner {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 54px 48px;
    box-shadow: 0 12px 36px rgba(17, 24, 39, .08);
}

.hero-badge {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    color: #4e6ef2;
    letter-spacing: .08em;
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
    color: #111827;
}

.hero-desc {
    margin: 18px 0 0;
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section {
    padding: 24px 0 20px;
}

.section-title {
    margin-bottom: 16px;
}

.section-title h2 {
    margin: 0;
    font-size: 26px;
    color: #111827;
}

.section-title span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .1);
}

.card h3 {
    margin: 12px 0 10px;
    font-size: 18px;
    line-height: 1.45;
    color: #111827;
}

.card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    min-height: 72px;
}

.card .meta {
    margin-top: 14px;
    font-size: 13px;
    color: #9ca3af;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tag-update {
    color: #1d4ed8;
    background: #dbeafe;
}

.tag-guide {
    color: #0f766e;
    background: #ccfbf1;
}

.tag-notice {
    color: #b45309;
    background: #fef3c7;
}

.footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    text-align: center;
    padding: 22px 0;
    color: #6b7280;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 991px) {
    .pill-nav-container {
        display: none;
    }

    .card-nav-container {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .card-nav-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-inner {
        padding: 28px 22px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
