/* ========================================
   公共基础样式 - xhyufan.com
   适用于所有页面
   ======================================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #00a6d4;
    --primary-glow: rgba(0, 212, 255, 0.5);
    --secondary: #7b2ff7;
    --secondary-glow: rgba(123, 47, 247, 0.5);
    --accent: #ff6b9d;
    --bg: #0a0f1e;
    --bg-alt: #0f1629;
    --glass-bg: rgba(15, 25, 45, 0.65);
    --glass-border: rgba(0, 212, 255, 0.15);
    --text: #e0f0ff;
    --text-light: #b0c6e0;
    --text-lighter: #8899bb;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --header-height: 70px;
    --bottom-nav-height: 60px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-bottom: 0;
}

/* ========================================
   工具类
   ======================================== */
.no-js .fade-up {
    opacity: 1 !important;
    transform: none !important;
}

.no-js .page-loader {
    display: none;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

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

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   粒子背景
   ======================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ========================================
   页面加载动画
   ======================================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: #0a0f1e;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   顶部通告栏
   ======================================== */
.top-bar {
    background: linear-gradient(90deg, rgba(123, 47, 247, 0.9), rgba(0, 212, 255, 0.85));
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px 20px;
    position: relative;
    z-index: 1001;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.top-bar .close-bar {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   主导航
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    transition: var(--transition);
    height: var(--header-height);
}

.header.scrolled {
    border-bottom-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    /*padding: 0 24px;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    z-index: 1002;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 0 18px var(--primary-glow);
}

.logo-text span {
    background: linear-gradient(to right, var(--primary), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    display: block;
    text-align: left;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.nav-links .btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    padding: 11px 24px;
    font-weight: 600;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    list-style: none;
}

.nav-links>li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: left;
}

.dropdown-menu li a:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 4px;
    display: block;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--primary);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   通用按钮
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* ========================================
   通用区块
   ======================================== */
.section {
    padding: 70px 24px;
    position: relative;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, 0.25);
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========================================
   玻璃卡片
   ======================================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    transition: var(--transition);
    border-radius: var(--radius);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.2);
}

/* ========================================
   网格布局
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* ========================================
   FAQ 样式
   ======================================== */
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.faq-question {
    padding: 18px 22px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    font-size: 1rem;
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.05);
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 14px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s;
    padding: 0 22px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9rem;
    text-align: left;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 22px 18px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    color: #b0c6e0;
    padding: 40px 24px 80px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer h5 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer a {
    color: #8899bb;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #64748b;
}
.footer-inner p {
    font-size: 0.9rem;
}
/* ========================================
   底部固定导航（移动端）
   ======================================== */
.bottom-nav-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    display: none;
}

.bottom-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    width: 100%;
}

.bottom-nav-inner a,
.bottom-nav-inner .drop-btn {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}

.bottom-nav-inner a.active,
.bottom-nav-inner .drop-btn.active {
    color: var(--primary);
}

.bottom-nav-inner .icon {
    font-size: 1.3rem;
}

.bottom-dropdown {
    position: absolute;
    bottom: calc(var(--bottom-nav-height) + 10px);
    right: 10px;
    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    min-width: 160px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.bottom-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bottom-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: left;
}

.bottom-dropdown li a:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

/* ========================================
   响应式
   ======================================== */
@media (min-width: 769px) {
    .bottom-nav-fixed {
        display: none !important;
    }
    .footer {
        padding: 40px 24px 20px;
    }
    body {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 992px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 50px 16px;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 90px 30px 30px;
        gap: 8px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        transition: right 0.4s;
        z-index: 1001;
        align-items: stretch;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links>li>a {
        text-align: left;
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 12px;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        padding-left: 20px;
    }
    .bottom-nav-fixed {
        display: block;
    }
    body {
        padding-bottom: var(--bottom-nav-height);
    }
}

.footer-bottom a {
    display: contents;
    font-size: 0.8rem;
    color: #64748b;
}

.mobileyincang {
  display: block;
}

@media (max-width: 768px) {
  .mobileyincang {
    display: none;
  }
}
/* ----- 右上角微信弹出 ----- */
 .wechat-wrapper {
            display: inline-block;
            position: relative;       /* 浮层定位参考点 */
        }

        /* 按钮样式（保留您的 .btn-nav） */
        .btn-nav {
            display: inline-block;
            padding: 12px 32px;
            background: #07c160;
            color: #fff;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            transition: background 0.2s;
            border: none;
            cursor: pointer;
        }
        .btn-nav:hover {
            background: #06ad56;
        }

        /* ----- 浮层卡片：显示在按钮下方 ----- */
        .wechat-qrcode {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 58px;               /* 紧贴按钮下方，可调大此值增加间距 */
            background: #ffffff;
            padding: 16px 16px 12px;
            border-radius: 12px;
            box-shadow: 0 10px 35px rgba(0,0,0,0.15);
            display: none;           /* 默认隐藏 */
            z-index: 999;
            text-align: center;
            border: 1px solid #eee;
            min-width: 130px;
        }

        /* 小三角（指向按钮）— 现在在卡片上方 */
        .wechat-qrcode::before {
            content: '';
            position: absolute;
            top: -10px;              /* 三角在卡片外部上方 */
            left: 50%;
            transform: translateX(-50%);
            border-width: 0 10px 10px 10px;
            border-style: solid;
            border-color: transparent transparent #ffffff transparent;
            filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.04));
        }

        /* 二维码图片 */
        .wechat-qrcode img {
            width: 150px;
            height: 150px;
            display: block;
            margin: 0 auto 6px;
            border-radius: 4px;
        }

        .wechat-qrcode .tip {
            font-size: 14px;
            color: #333;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        /* 悬停显示浮层 */
        .wechat-wrapper:hover .wechat-qrcode {
            display: block;
        }

    /* 弹窗背景遮罩 */
    .modal {
      display: none;
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    .modal.show { display: flex; }
    .modal-content {
      background: #fff;
      padding: 30px 40px 40px;
      border-radius: 16px;
      text-align: center;
      position: relative;
      max-width: 320px;
    }
    .modal-content img {
      width: 100%;
      max-width: 250px;
      height: auto;
      margin: 10px 0;
    }
    .close-btn {
      position: absolute;
      top: 8px; right: 16px;
      font-size: 28px;
      cursor: pointer;
      color: #999;
    }
    .close-btn:hover { color: #333; }
    .trigger-btn {
      padding: 14px 40px;
      background: #07C160;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 18px;
      cursor: pointer;
    }
    .trigger-btn:hover { background: #06AD56; }
    .tip {
      color: #888;
      font-size: 14px;
      margin-top: 6px;
    }
	.section-desc strong {
    color: #00d4ff;
    font-weight: 400;
}
.hero-content strong {
    font-weight: 400;
    color: #00d4ff;
}