/* ============================================
   华诺云谱建站 - 全站统一样式表
   主色调：浅紫 #9B8FD0 / 奶白 #FAF8F5 / 浅灰 #EDEBE8
   风格：柔顺剂温柔风，不规则网格错位流动布局
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #3D3A4A;
    background: #FAF8F5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.35s ease;
}

a:hover {
    color: #9B8FD0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2D2A3A;
    line-height: 1.4;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========== 顶部导航栏 ========== */
.hn-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 18px 0;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.hn-header.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 24px rgba(155, 143, 208, 0.08);
    padding: 10px 0;
}

.hn-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hn-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hn-logo img {
    height: 38px;
    width: auto;
}

.hn-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #2D2A3A;
    letter-spacing: 1px;
}

.hn-logo-text span {
    color: #9B8FD0;
}

.hn-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.hn-nav-list {
    display: flex;
    gap: 30px;
}

.hn-nav-item {
    position: relative;
    font-size: 15px;
    color: #4A475A;
    font-weight: 500;
    cursor: pointer;
}

.hn-nav-item > a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
}

.hn-nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9B8FD0, #C4B8E8);
    transition: all 0.35s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.hn-nav-item:hover > a::after,
.hn-nav-item.active > a::after {
    width: 100%;
}

.hn-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(155, 143, 208, 0.15);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 100;
}

.hn-nav-item:hover .hn-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.hn-submenu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #5A576A;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.hn-submenu a:hover {
    background: linear-gradient(135deg, rgba(155,143,208,0.1), rgba(196,184,232,0.15));
    color: #9B8FD0;
}

.hn-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hn-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #9B8FD0 0%, #B8AEE0 100%);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(155, 143, 208, 0.25);
}

.hn-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(155, 143, 208, 0.35);
    color: #fff;
}

.hn-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hn-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2D2A3A;
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hn-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hn-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== 移动端导航 ========== */
.hn-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #FAF8F5;
    z-index: 998;
    padding: 80px 32px 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.hn-mobile-nav.active {
    right: 0;
}

.hn-mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: #3D3A4A;
    border-bottom: 1px solid rgba(155, 143, 208, 0.12);
}

.hn-mobile-sub {
    padding-left: 16px;
    font-size: 14px !important;
    color: #7A778A !important;
}

.hn-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 42, 58, 0.4);
    z-index: 997;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hn-mobile-overlay.active {
    opacity: 1;
}

/* ========== 通用容器 ========== */
.hn-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.hn-section {
    padding: 100px 0;
    position: relative;
}

.hn-section-sm {
    padding: 70px 0;
}

/* ========== 页面标题 ========== */
.hn-page-banner {
    padding: 180px 0 100px;
    background: linear-gradient(160deg, #F5F0FF 0%, #FAF8F5 50%, #F0ECF8 100%);
    position: relative;
    overflow: hidden;
}

.hn-page-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(155,143,208,0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.hn-page-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(196,184,232,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hn-page-banner-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hn-banner-title {
    font-size: 44px;
    font-weight: 700;
    color: #2D2A3A;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hn-banner-subtitle {
    font-size: 17px;
    color: #6A677A;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.9;
}

.hn-breadcrumb {
    margin-top: 28px;
    font-size: 13px;
    color: #9A97AA;
}

.hn-breadcrumb a {
    color: #9B8FD0;
}

.hn-breadcrumb span {
    margin: 0 10px;
    color: #B0ADBE;
}

/* ========== 通用标题 ========== */
.hn-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.hn-section-title h2 {
    font-size: 34px;
    font-weight: 700;
    color: #2D2A3A;
    margin-bottom: 12px;
}

.hn-section-title p {
    font-size: 15px;
    color: #8A879A;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

.hn-section-title .hl {
    background: linear-gradient(135deg, #9B8FD0, #C4B8E8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== 卡片通用 ========== */
.hn-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(155, 143, 208, 0.06);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9B8FD0, #C4B8E8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(155, 143, 208, 0.14);
}

.hn-card:hover::before {
    transform: scaleX(1);
}

/* ========== 按钮 ========== */
.hn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.35s ease;
    cursor: pointer;
    border: none;
}

.hn-btn-primary {
    background: linear-gradient(135deg, #9B8FD0 0%, #B8AEE0 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(155, 143, 208, 0.25);
}

.hn-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(155, 143, 208, 0.4);
    color: #fff;
}

.hn-btn-outline {
    background: transparent;
    color: #9B8FD0;
    border: 1.5px solid #C4B8E8;
}

.hn-btn-outline:hover {
    background: #9B8FD0;
    color: #fff;
    border-color: #9B8FD0;
}

.hn-btn-link {
    color: #9B8FD0;
    padding: 8px 0;
    gap: 4px;
}

.hn-btn-link:hover {
    gap: 12px;
}

/* ========== 页脚 ========== */
.hn-footer {
    background: linear-gradient(180deg, #FAF8F5 0%, #F2EEF8 100%);
    padding: 80px 0 0;
    border-top: 1px solid rgba(155, 143, 208, 0.08);
}

.hn-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.hn-footer-brand .hn-logo {
    margin-bottom: 18px;
}

.hn-footer-brand p {
    font-size: 14px;
    color: #8A879A;
    line-height: 1.9;
    margin-bottom: 20px;
}

.hn-footer-social {
    display: flex;
    gap: 12px;
}

.hn-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9B8FD0;
    box-shadow: 0 2px 8px rgba(155, 143, 208, 0.1);
    transition: all 0.3s ease;
    font-size: 16px;
}

.hn-footer-social a:hover {
    background: #9B8FD0;
    color: #fff;
    transform: translateY(-3px);
}

.hn-footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2D2A3A;
    margin-bottom: 22px;
}

.hn-footer-col ul li {
    margin-bottom: 12px;
}

.hn-footer-col ul li a {
    font-size: 14px;
    color: #7A778A;
    transition: all 0.25s ease;
}

.hn-footer-col ul li a:hover {
    color: #9B8FD0;
    padding-left: 4px;
}

.hn-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #7A778A;
    margin-bottom: 14px;
    line-height: 1.7;
}

.hn-footer-contact li .ic {
    color: #9B8FD0;
    flex-shrink: 0;
    margin-top: 2px;
}

.hn-footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(155, 143, 208, 0.08);
    text-align: center;
}

.hn-footer-bottom p {
    font-size: 13px;
    color: #9A97AA;
    line-height: 1.8;
}

/* ========== 滚动渐入动画 ========== */
.hn-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hn-fade-up.in {
    opacity: 1;
    transform: translateY(0);
}

.hn-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hn-fade-left.in {
    opacity: 1;
    transform: translateX(0);
}

.hn-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hn-fade-right.in {
    opacity: 1;
    transform: translateX(0);
}

/* ========== 返回顶部 ========== */
.hn-back-top {
    position: fixed;
    bottom: 40px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9B8FD0, #B8AEE0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(155, 143, 208, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 996;
}

.hn-back-top.show {
    opacity: 1;
    visibility: visible;
}

.hn-back-top:hover {
    transform: translateY(-4px);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hn-nav {
        display: none;
    }

    .hn-menu-toggle {
        display: flex;
    }

    .hn-mobile-nav {
        display: block;
    }

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

    .hn-section {
        padding: 70px 0;
    }

    .hn-banner-title {
        font-size: 32px;
    }

    .hn-page-banner {
        padding: 150px 0 70px;
    }
}

@media (max-width: 768px) {
    .hn-container {
        padding: 0 20px;
    }

    .hn-header-inner {
        padding: 0 20px;
    }

    .hn-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hn-section-title h2 {
        font-size: 26px;
    }

    .hn-banner-title {
        font-size: 28px;
    }

    .hn-banner-subtitle {
        font-size: 15px;
    }

    .hn-section {
        padding: 50px 0;
    }

    .hn-page-banner {
        padding: 130px 0 50px;
    }

    .hn-cta-btn {
        display: none;
    }

    .hn-card {
        padding: 24px;
    }
}
