:root {
    --hero-mesh-gradient: radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.16) 0px, transparent 52%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.16) 0px, transparent 48%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.08) 0px, transparent 44%),
        radial-gradient(at 0% 100%, rgba(14, 165, 233, 0.12) 0px, transparent 48%);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 10;
}

.nav-logo .logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.nav-logo .logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -1px;
}

.nav-logo .logo-text span {
    color: #4F46E5;
}

.nav-main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .nav-menu {
    background: rgba(241, 245, 255, 0.3);
    border-color: rgba(79, 70, 229, 0.05);
    box-shadow: none;
}

.nav-menu > li {
    position: relative;
    margin: 0;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 100px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu > li > a i {
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover {
    color: #4F46E5;
    background: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.nav-menu > li > a:hover i {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-menu > li > a.active {
    background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    color: #fff;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
}

.nav-menu > li > a.active i {
    color: #fff;
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    min-width: 240px;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-menu li {
    margin-bottom: 2px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 0;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(79, 70, 229, 0.08);
    color: #4F46E5;
    transform: translateX(6px);
}

.dropdown-menu a i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #fff;
    color: #4F46E5;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.dropdown-menu a:hover i,
.dropdown-menu a.active i {
    background: #4F46E5;
    border-color: #4F46E5;
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.nav-cta {
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn-primary::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: 0.6s;
}

.nav-btn-primary:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #0F172A;
    transition: all 0.3s ease;
}

.page-banner,
.page-hero,
.page-header,
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.98) 0%, rgba(241, 245, 255, 0.96) 100%) !important;
}

.page-banner::before,
.page-hero::before,
.page-header::before,
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    background: var(--hero-mesh-gradient);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.page-banner::after,
.page-hero::after,
.page-header::after,
.hero::after {
    content: '';
    position: absolute;
    left: -120px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.08) 35%, transparent 72%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.page-banner .container,
.page-hero .container,
.page-header .container,
.hero > .container,
.page-hero-content,
.page-header-content,
.article-header {
    position: relative;
    z-index: 1;
}

.page-banner .container,
.page-hero-content,
.page-header-content,
.hero > .container {
    max-width: 980px;
}

.page-badge,
.hero-badge {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-badge i,
.hero-badge i {
    width: auto;
    height: auto;
    background: transparent;
}

.page-title,
.hero-title,
.article-title {
    letter-spacing: -0.03em;
}

.page-desc,
.hero-desc {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-title .highlight,
.hero-title .highlight,
.article-title .highlight {
    text-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
}

.page-buttons,
.hero-features,
.page-stats {
    position: relative;
    z-index: 1;
}

.page-stats {
    flex-wrap: wrap;
    gap: 18px !important;
}

.page-stat,
.hero-feature {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-stat {
    min-width: 160px;
    padding: 0;
}

.page-stat-value {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-stat-label {
    color: var(--text-secondary);
}

.hero-features {
    gap: 14px !important;
}

.hero-feature {
    padding: 0 !important;
}

.hero-feature i {
    width: auto;
    height: auto;
    background: transparent;
}

.article-main {
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.article-header {
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 248, 255, 0.96) 48%, rgba(236, 246, 255, 0.96) 100%);
}

.article-header::before {
    content: none;
    background: none;
    opacity: 0;
}

.article-header::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.article-title,
.article-meta,
.article-tags {
    position: relative;
    z-index: 1;
}

.article-title {
    max-width: 820px;
}

.article-meta {
    row-gap: 12px;
}

.article-tag {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
    .navbar,
    .navbar.scrolled {
        padding: 14px 0;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.18);
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-main-content {
        display: block;
        flex-grow: 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: -100%;
        width: calc(100% - 24px);
        max-height: calc(100vh - 96px);
        margin: 0;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 24px;
        box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.22);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        overflow-y: auto;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 12px;
    }

    .nav-menu > li > a {
        justify-content: flex-start;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        padding: 8px;
        border-radius: 18px;
        background: rgba(241, 245, 255, 0.78);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu::after {
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        transform: none;
    }

    .page-stats {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .page-stats {
        gap: 12px !important;
    }

    .page-stat {
        min-width: calc(50% - 8px);
    }

    .article-header {
        padding: 32px 24px 28px !important;
    }
}

@media (max-width: 575px) {
    .page-stat {
        min-width: 100%;
    }
}

/* ===== 通用按钮系统 - 重新设计 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
    border: none;
}

/* 主要按钮 - 渐变风格 */
.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    color: #fff !important;
    box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    background: linear-gradient(135deg, #4338CA 0%, #0284C7 100%);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.5);
    color: #fff !important;
}

/* 次要/边框按钮 - 玻璃感风格 */
.btn:not(.btn-primary) {
    background: rgba(255, 255, 255, 0.8);
    color: #334155 !important;
    border: 1px solid rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn:not(.btn-primary):hover {
    background: #fff;
    border-color: #4F46E5;
    color: #4F46E5 !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}

.btn i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px) rotate(-10deg);
}

/* 按钮内部亮光效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn:hover::after {
    left: 100%;
}
