/* ========================================
   FlyShop 官网样式
   ======================================== */

/* ---------- CSS 变量 ---------- */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-lighter: #DBEAFE;
    --dark: #0B1426;
    --dark-blue: #0F172A;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --success: #10B981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all .3s ease;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.35;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ========================================
   顶部导航
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header .navbar {
    padding: 12px 0;
}

.navbar-brand {
    font-size: 0;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.5px;
}

.brand-name em {
    font-style: normal;
    color: var(--primary);
}

.navbar-nav .nav-link {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-lighter);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.nav-phone i {
    color: var(--primary);
    margin-right: 4px;
}

.btn-trial {
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   Hero 轮播横幅
   ======================================== */
.hero-section {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    min-height: 373px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,20,38,.82) 0%, rgba(11,20,38,.55) 50%, rgba(11,20,38,.25) 100%);
    z-index: 1;
}

.hero-slide .container {
    z-index: 2;
}

.hero-content {
    color: #fff;
    padding: 50px 0;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-tags span {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(37,99,235,.25);
    border: 1px solid rgba(37,99,235,.4);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 12px 36px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37,99,235,.4);
}

.btn-hero:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37,99,235,.5);
}

/* 轮播文字进入动画 */
.carousel-item.active .hero-tags,
.carousel-item.active .hero-content h1,
.carousel-item.active .hero-desc,
.carousel-item.active .btn-hero {
    animation: heroFadeInUp .8s ease both;
}

.carousel-item.active .hero-tags { animation-delay: .1s; }
.carousel-item.active .hero-content h1 { animation-delay: .25s; }
.carousel-item.active .hero-desc { animation-delay: .4s; }
.carousel-item.active .btn-hero { animation-delay: .55s; }

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 轮播指示器 */
.hero-section .carousel-indicators {
    bottom: 24px;
    z-index: 10;
}

.hero-section .carousel-indicators button {
    width: 32px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(255,255,255,.4);
    transition: var(--transition);
}

.hero-section .carousel-indicators button.active {
    width: 48px;
    background: #fff;
}

/* 轮播箭头 */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.hero-section .carousel-control-prev { left: 20px; }
.hero-section .carousel-control-next { right: 20px; }

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255,255,255,.25);
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* ========================================
   功能概览 - 卡片式
   ======================================== */
.features-section {
    padding: 90px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.features-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(37,99,235,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 30px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 功能概览：Grid 均衡排布——大屏 3+3、平板 2+2+2，避免 4+2 难看 */
.features-section .features-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0;
}

.features-section .features-cards-row > div {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    flex: none;
}

@media (min-width: 768px) {
    .features-section .features-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .features-section .features-cards-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- 卡片 ---------- */
.feature-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 32px 24px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s ease, border-color .35s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    border-radius: 0 0 4px 0;
    transition: height .35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border-color: rgba(37,99,235,.15);
}

.feature-card:hover::before {
    height: 100%;
}

/* ---------- 图标圆形 ---------- */
.card-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: transform .35s ease, box-shadow .35s ease;
    flex-shrink: 0;
}

.feature-card:hover .card-icon-circle {
    transform: scale(1.1) translateY(-2px);
}

.icon-blue   { background: linear-gradient(135deg, #60A5FA, #2563EB); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.icon-orange { background: linear-gradient(135deg, #FDBA74, #EA580C); color: #fff; box-shadow: 0 4px 14px rgba(234,88,12,.3); }
.icon-green  { background: linear-gradient(135deg, #6EE7B7, #059669); color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,.3); }
.icon-gold   { background: linear-gradient(135deg, #FCD34D, #D97706); color: #fff; box-shadow: 0 4px 14px rgba(217,119,6,.3); }
.icon-pink   { background: linear-gradient(135deg, #F9A8D4, #DB2777); color: #fff; box-shadow: 0 4px 14px rgba(219,39,119,.3); }

/* ---------- 卡片文本 ---------- */
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
}

/* ---------- 功能列表 ---------- */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    flex: 1;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: color .3s ease;
}

.card-features li i {
    color: var(--primary-light);
    font-size: 13px;
    flex-shrink: 0;
}

.feature-card:hover .card-features li {
    color: var(--text-primary);
}

/* ---------- 了解更多按钮 ---------- */
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: auto;
}

.btn-card i {
    font-size: 11px;
    transition: transform .3s ease;
}

.btn-card:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

.btn-card:hover i {
    transform: translateX(4px);
}

/* ========================================
   内容区块通用
   ======================================== */
.content-section {
    padding: 90px 0;
}

.content-section.section-gray {
    background: var(--bg-light);
}

.content-section.section-blue {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
    color: #fff;
}

.section-header {
    margin-bottom: 32px;
}

.section-badge {
    display: inline-block;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
    letter-spacing: -0.5px;
    background: none;
    padding: 0;
}

.section-badge.badge-light {
    background: none;
    color: #fff;
}

.content-text h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.6;
}

.section-blue .content-text h2 {
    color: #fff;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.section-blue .section-subtitle {
    color: rgba(255,255,255,.8);
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.section-blue .section-desc {
    color: rgba(255,255,255,.7);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.feature-list li i {
    color: var(--success);
    font-size: 15px;
    flex-shrink: 0;
}

.feature-list.light li {
    color: rgba(255,255,255,.9);
}

.feature-list.light li i {
    color: #86EFAC;
}

.btn-go {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-go:hover {
    transform: translateX(4px);
}

.section-blue .btn-go.btn-light {
    color: var(--primary);
}

.section-blue .btn-go.btn-light:hover {
    background: #fff;
    color: var(--primary-dark);
}

/* ========================================
   图解区域通用
   ======================================== */
.image-wrapper {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.image-wrapper.light-wrapper {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
}

.dist-flow-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ========================================
   二级分销流程图（代码绘制，替代图片）
   ======================================== */
.dist2-wrapper {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.dist2-diagram {
    position: relative;
    min-height: 300px;
}

.dist2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 62px 98px;
    justify-items: start;
    align-items: start;
    padding: 10px 12px;
}

.node-merchant,
.node-more {
    justify-self: start;
}

.node-a,
.node-b {
    justify-self: end;
}

.dist2-node {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.node-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(37, 99, 235, 0.22);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.06) inset;
}

.node-ring::before,
.node-ring::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.18);
    opacity: 0.85;
}

.node-ring::after {
    inset: -22px;
    opacity: 0.35;
}

.node-ring .node-inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e7cff 0%, #0b4fd8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-align: center;
    box-shadow: 0 14px 34px rgba(30, 124, 255, 0.18);
}

.node-ring .node-inner i {
    font-size: 22px;
}

.node-ring .node-inner span {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* 外圈小点（4个） */
.dist2-node::before,
.dist2-node::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.40);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.dist2-node::before {
    left: 16px;
    top: 16px;
}

.dist2-node::after {
    right: 16px;
    top: 16px;
}

.dist2-node .node-ring::marker { content: none; }

.dist2-node .node-ring .node-inner::before,
.dist2-node .node-ring .node-inner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.40);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.dist2-node .node-ring .node-inner::before {
    left: -28px;
    bottom: 18px;
}

.dist2-node .node-ring .node-inner::after {
    right: -28px;
    bottom: 18px;
}

/* 连接器通用 */
.dist2-conn {
    position: absolute;
    pointer-events: none;
    color: var(--text-primary);
    font-size: 14px;
}

.dist2-conn .conn-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.0), rgba(59, 130, 246, 0.95), rgba(59, 130, 246, 0.0));
}

.dist2-conn .conn-line-vert {
    width: 2px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.0), rgba(59, 130, 246, 0.95), rgba(59, 130, 246, 0.0));
}

.dist2-conn .conn-text {
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

.dist2-conn .conn-text .muted {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.35;
}

.dist2-conn .conn-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(0, 0, 0, 0.72);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

/* 箭头 */
.conn-arrow {
    position: absolute;
    width: 0;
    height: 0;
}

.conn-arrow.right {
    right: 0;
    top: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(59, 130, 246, 0.95);
}

.conn-arrow.down {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid rgba(59, 130, 246, 0.95);
}

.conn-arrow.both {
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    width: 100%;
    height: 0;
}

.conn-arrow.both::before,
.conn-arrow.both::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.conn-arrow.both::before {
    left: -2px;
    border-right: 10px solid rgba(59, 130, 246, 0.95);
}

.conn-arrow.both::after {
    right: -2px;
    border-left: 10px solid rgba(59, 130, 246, 0.95);
}

/* 具体连线定位（基于 2x2 节点布局） */
.dist2-conn-top {
    left: 160px;
    top: 48px;
    width: calc(100% - 320px);
}

.dist2-conn-top .conn-line {
    width: 100%;
}

.dist2-conn-top .conn-text {
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translate(-50%, -100%);
    width: 320px;
}

.dist2-conn-left {
    left: 82px;
    top: 148px;
    height: calc(100% - 210px);
    width: 2px;
}

.dist2-conn-left .conn-line-vert {
    height: 100%;
}

.dist2-conn-left .conn-pill {
    position: absolute;
    left: 14px;
    top: 26px;
}

.dist2-conn-right {
    right: 82px;
    top: 148px;
    height: calc(100% - 210px);
    width: 2px;
}

.dist2-conn-right .conn-line-vert {
    height: 100%;
}

.dist2-conn-right .conn-pill {
    position: absolute;
    right: 14px;
    top: 26px;
}

.dist2-conn-bottom {
    left: 160px;
    bottom: 48px;
    width: calc(100% - 320px);
}

.dist2-conn-bottom .conn-line {
    width: 100%;
}

.dist2-conn-bottom .conn-text {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translate(-50%, 100%);
    width: 420px;
}

@media (max-width: 1199px) {
    .dist2-grid {
        gap: 52px 70px;
    }

    .dist2-conn-top,
    .dist2-conn-bottom {
        left: 150px;
        width: calc(100% - 300px);
    }

    .dist2-conn-top .conn-text {
        width: 280px;
    }

    .dist2-conn-bottom .conn-text {
        width: 360px;
    }
}

@media (max-width: 575px) {
    .dist2-diagram {
        min-height: 430px;
    }

    .dist2-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 36px;
        justify-items: center;
        padding: 0;
    }

    .dist2-conn-top,
    .dist2-conn-left,
    .dist2-conn-right,
    .dist2-conn-bottom {
        display: none;
    }
}

/* ========================================
   团队合伙人流程图（代码绘制）
   ======================================== */
.partner-diagram {
    position: relative;
    display: grid;
    /* 更贴近原图：左右圆 + 中间卡片，且保证在右侧容器内不挤压 */
    grid-template-columns: clamp(120px, 22%, 148px) minmax(280px, 1fr) clamp(120px, 22%, 148px);
    align-items: center;
    gap: 10px;
    min-height: 252px;
    max-width: 100%;
    overflow: hidden; /* 防止任何元素出圈 */
}

.partner-diagram::before,
.partner-diagram::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112%;
    height: 74%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.partner-diagram::before {
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 62%);
}

.partner-diagram::after {
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 58%);
    transform: translate(-50%, -50%) rotate(-6deg);
}

.partner-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.partner-big {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), transparent 55%);
    border: 2px solid rgba(37, 99, 235, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background-color: #fff;
}

.partner-big i {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
}

.partner-big span {
    margin-top: -4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.partner-recruit {
    position: absolute;
    right: -2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

.partner-recruit::before {
    content: '';
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.8));
}

.partner-mid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 12px 14px;
    padding: 10px 0;
    justify-items: stretch;
    z-index: 1;
}

.partner-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 12px 12px 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    min-height: 104px;
}

.partner-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    opacity: 0.9;
}

.card-green::after { background: linear-gradient(90deg, #22c55e, #16a34a); }
.card-orange::after { background: linear-gradient(90deg, #f59e0b, #f97316); }
.card-red::after { background: linear-gradient(90deg, #fb7185, #ef4444); }
.card-blue::after { background: linear-gradient(90deg, #38bdf8, #2563eb); }

.partner-card .card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-weight: 700;
    color: var(--text-primary);
}

.partner-card .card-row span {
    white-space: nowrap;
}

.partner-card .card-row i {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.partner-link {
    position: absolute;
    left: 50%;
    width: 116px;
    transform: translateX(-50%);
    display: grid;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 6px;
    pointer-events: none;
}

.partner-link .link-line {
    width: 100%;
    height: 0;
    border-top: 2px dashed rgba(37, 99, 235, 0.55);
    position: relative;
}

.partner-link .link-line::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(37, 99, 235, 0.6);
}

.partner-link .link-line::before {
    content: '';
    position: absolute;
    left: -2px;
    top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid rgba(37, 99, 235, 0.6);
}

.partner-link .link-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
}

.partner-link.link-top { top: 14px; }
.partner-link.link-bottom { bottom: 14px; }

.partner-right {
    justify-content: center;
    gap: 8px;
    padding-left: 4px;
}

.partner-right .partner-bidir {
    position: static;
    display: grid;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 11px;
}

.partner-right .bidir-line {
    width: 44px;
    height: 0;
    border-top: 2px dashed rgba(37, 99, 235, 0.55);
    position: relative;
}

/* 左侧也略收紧，使整体更像原图并居中 */
.partner-left {
    justify-content: flex-end;
    padding-right: 6px;
}

/* 当容器较窄时，整体再缩一档，避免顶到右侧内容区 */
@media (max-width: 1199px) {
    .partner-diagram {
        transform: scale(0.90);
        transform-origin: center;
        grid-template-columns: clamp(112px, 26%, 136px) minmax(260px, 1fr) clamp(112px, 26%, 136px);
    }
}

/* 进一步确保不溢出：在容器较窄时整体轻微缩放 */
@media (max-width: 1199px) {
    .partner-diagram {
        transform: scale(0.96);
        transform-origin: center;
    }
}

.partner-right .bidir-line::before,
.partner-right .bidir-line::after {
    content: '';
    position: absolute;
    top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.partner-right .bidir-line::before { left: -2px; border-right: 10px solid rgba(37, 99, 235, 0.6); }
.partner-right .bidir-line::after { right: -2px; border-left: 10px solid rgba(37, 99, 235, 0.6); }

@media (max-width: 991px) {
    .partner-diagram {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .partner-recruit,
    .partner-right .partner-bidir,
    .partner-link { display: none; }
    .partner-mid { grid-template-columns: 1fr; grid-template-rows: auto; }
}

/* ========================================
   链动2+1流程图（代码绘制）
   ======================================== */
.chain21-diagram {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 18px;
    align-items: start;
    padding: 6px 4px;
}

.chain21-col {
    position: relative;
    min-height: 260px;
}

.chain21-box {
    border-radius: 10px;
    padding: 12px 12px;
    font-weight: 800;
    text-align: center;
    border: 2px solid rgba(37, 99, 235, 0.65);
    color: rgba(37, 99, 235, 0.95);
    background: #fff;
}

.chain21-box.outline { background: #f0f7ff; }
.chain21-box.solid {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-color: transparent;
}

.chain21-note {
    margin: 10px 0 10px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.chain21-arrow.down {
    width: 0;
    height: 18px;
    border-left: 2px solid rgba(37, 99, 235, 0.45);
    margin: 8px auto;
    position: relative;
}

.chain21-arrow.down::after {
    content: '';
    position: absolute;
    left: -6px;
    bottom: -10px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid rgba(37, 99, 235, 0.55);
}

.chain21-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.7);
    color: rgba(37, 99, 235, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: #fff;
}

.chain21-circle.solid-circle {
    background: #eaf2ff;
    border-style: solid;
}

.chain21-circles {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 10px;
}

.chain21-circles.small {
    gap: 10px;
    margin-top: 10px;
}

.chain21-circle.dot {
    border-style: dashed;
    color: rgba(37, 99, 235, 0.65);
}

.chain21-dash.down {
    width: 0;
    height: 18px;
    border-left: 2px dashed rgba(37, 99, 235, 0.35);
    margin: 8px auto 0;
}

.chain21-dash.split {
    width: 0;
    height: 16px;
    border-left: 2px dashed rgba(37, 99, 235, 0.35);
    margin: 10px auto 12px;
}

.chain21-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.chain21-keep {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
    margin: 10px 0;
}

.chain21-keep.keep-right {
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    text-align: center;
    color: rgba(37, 99, 235, 0.9);
    font-weight: 700;
}

.chain21-flow {
    position: absolute;
    left: 33%;
    top: 104px;
    width: 34%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.65), rgba(37, 99, 235, 0.2));
}

.chain21-flow::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(37, 99, 235, 0.55);
}

@media (max-width: 991px) {
    .chain21-diagram {
        grid-template-columns: 1fr;
    }
    .chain21-flow { display: none; }
    .chain21-keep.keep-right { position: static; margin-top: 10px; }
}

/* ========================================
   推三返一流程图（代码绘制）
   ======================================== */
.push31-diagram {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
}

.push31-big {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.18), transparent 55%);
    border: 2px solid rgba(37, 99, 235, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 12px;
    margin: 8px auto 0;
}

.push31-big i {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
}

.push31-big span {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.push31-cols {
    display: grid;
    grid-template-columns: 220px 1fr 260px 120px;
    gap: 14px;
    align-items: start;
}

.push31-col.rewards {
    display: grid;
    gap: 10px;
}

.reward-pill {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    position: relative;
}

.reward-pill::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(34, 197, 94, 0.65);
}

.reward-pill .n {
    color: var(--primary);
    margin: 0 2px;
}

.reward-pill.spacer { visibility: hidden; }

.push31-col.purchase {
    display: grid;
    gap: 16px;
}

.purchase-panel {
    background: rgba(245, 245, 245, 0.65);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.purchase-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.buy-badge {
    width: 92px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.15);
    font-size: 12px;
}

.buy-pill {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
}

.buy-pill::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(34, 197, 94, 0.65);
}

.push31-col.fission {
    display: grid;
    gap: 10px;
}

.fission-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    align-items: center;
}

.fission-row.spacer { visibility: hidden; }

.fission-pill {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
}

.fission-users {
    display: flex;
    gap: 10px;
    color: rgba(37, 99, 235, 0.35);
    font-size: 18px;
}

.push31-col.tail {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.tail-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.85);
    letter-spacing: 1px;
}

@media (max-width: 1199px) {
    .push31-cols {
        grid-template-columns: 200px 1fr 240px 96px;
    }
}

@media (max-width: 991px) {
    .push31-diagram {
        grid-template-columns: 1fr;
    }
    .push31-cols {
        grid-template-columns: 1fr;
    }
    .tail-label { writing-mode: horizontal-tb; }
}

/* ---------- 二维码分销流程图 ---------- */
.flow-diagram {
    text-align: center;
}

.flow-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.flow-step:hover .step-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
}

.flow-step span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.flow-arrow {
    color: var(--primary-light);
    font-size: 14px;
}

.flow-dashboard {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.dash-row {
    display: flex;
    justify-content: space-around;
}

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

.dash-stat strong {
    display: block;
    font-size: 20px;
    color: var(--primary);
    font-weight: 800;
}

.dash-stat span {
    font-size: 12px;
    color: var(--text-light);
}

/* ---------- 合伙人网络图 ---------- */
.network-diagram {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.network-center {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37,99,235,.4);
    margin-bottom: 10px;
}

.network-center span {
    font-size: 11px;
    margin-top: 2px;
}

.network-ring {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 10px 0;
}

.network-node {
    width: 56px;
    height: 56px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.ring-2 .network-node {
    width: 40px;
    height: 40px;
    font-size: 12px;
    background: #E0E7FF;
    color: #6366F1;
}

.network-node span {
    font-size: 9px;
    margin-top: 2px;
}

.network-node:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(37,99,235,.2);
}

/* ---------- 链动2+1图 ---------- */
.chain-diagram {
    text-align: center;
    padding: 10px 0;
}

.chain-level {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4px;
}

.chain-node {
    padding: 10px 20px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.chain-node.main {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
}

.chain-node.sm {
    padding: 8px 14px;
    font-size: 12px;
}

.chain-node:hover {
    transform: translateY(-2px);
}

.chain-arrows {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 6px 0;
}

.arrow-line {
    display: block;
    width: 2px;
    height: 20px;
    background: var(--primary-light);
    opacity: .4;
}

.chain-upgrade {
    display: inline-block;
    padding: 6px 18px;
    background: #FEF3C7;
    color: #B45309;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 6px 0;
}

.chain-benefits {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.benefit-tag {
    padding: 6px 14px;
    background: #ECFDF5;
    color: #059669;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- 推三返一图 ---------- */
.push-diagram {
    text-align: center;
    padding: 20px 0;
}

.push-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 30px;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 24px;
}

.push-connections {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.push-friend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.friend-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.push-friend span {
    font-size: 13px;
    color: rgba(255,255,255,.9);
}

.push-result {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    color: #fff;
    font-size: 15px;
}

.push-result i {
    font-size: 20px;
    color: #FCD34D;
}

/* ---------- 云仓代理图 ---------- */
.cloud-diagram {
    text-align: center;
    padding: 10px 0;
}

.cloud-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.cloud-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37,99,235,.3);
    margin-bottom: 8px;
}

.cloud-top span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.cloud-flow {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cloud-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.branch-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.cloud-branch span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cloud-agents {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.agent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    min-width: 100px;
}

.agent-card i {
    font-size: 22px;
    color: var(--primary);
}

.agent-card strong {
    font-size: 13px;
    color: var(--text-primary);
}

.agent-card span {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* ---------- 二七九分销模式图 ---------- */
.mode279-diagram {
    padding: 10px 0;
}

.mode279-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.mode279-title i {
    color: var(--primary);
    margin-right: 6px;
}

/* 三步流程 */
.mode279-steps {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 24px;
}

.mode279-step {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mode279-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.step-2 .step-num {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.step-7 .step-num {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.step-9 .step-num {
    background: linear-gradient(135deg, #10b981, #059669);
}

.step-content strong {
    display: block;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.step-content span {
    display: block;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.step-detail {
    font-size: 11px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 500;
}

.mode279-arrow {
    display: flex;
    align-items: center;
    color: #c4d3e8;
    font-size: 14px;
    flex-shrink: 0;
}

/* 适用场景标签 */
.mode279-scenes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.scene-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.scene-tag:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.scene-tag i {
    font-size: 12px;
}

/* 底部关键词 */
.mode279-keywords {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.kw-item {
    font-size: 12px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kw-item i {
    color: var(--primary);
    font-size: 11px;
}

@media (max-width: 991px) {
    .mode279-steps {
        flex-direction: column;
    }

    .mode279-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .mode279-scenes {
        gap: 6px;
    }

    .scene-tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    .mode279-keywords {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* ---------- 自定义模式 ---------- */
.icon-purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
}

.feature-card-custom {
    border: 2px dashed #c4b5fd;
    background: linear-gradient(135deg, #faf5ff, #f5f0ff);
}

.feature-card-custom:hover {
    border-color: #a855f7;
}

.custom-diagram {
    text-align: center;
    padding: 10px 0;
}

.custom-center {
    margin-bottom: 24px;
}

.custom-core {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
    transition: transform 0.3s;
}

.custom-core:hover {
    transform: scale(1.08);
}

.custom-core i {
    font-size: 28px;
}

.custom-core strong {
    font-size: 12px;
    font-weight: 600;
}

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

.custom-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border: 1px solid #ede9fe;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.custom-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.12);
    border-color: #a855f7;
}

.module-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3e8ff, #ede9fe);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.custom-module span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.custom-flow-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #ede9fe;
    flex-wrap: wrap;
}

.custom-flow-label span {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 500;
}

.custom-flow-label span i {
    margin-right: 4px;
    font-size: 12px;
}

.custom-flow-label > i {
    color: #c4b5fd;
    font-size: 12px;
}

@media (max-width: 575px) {
    .custom-modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-flow-label {
        gap: 6px;
    }

    .custom-flow-label span {
        font-size: 12px;
    }
}

/* ========================================
   税筹卡片
   ======================================== */
.tax-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.tax-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tax-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.tax-card:hover .tax-icon {
    background: var(--primary);
    color: #fff;
}

.tax-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tax-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   增值服务（白底 + 精修卡片）
   ======================================== */
.section-value-added {
    padding: 90px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.section-value-added::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(37, 99, 235, 0.10) 0%, transparent 42%),
        radial-gradient(circle at 82% 70%, rgba(168, 85, 247, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 55% 10%, rgba(245, 158, 11, 0.10) 0%, transparent 38%);
    pointer-events: none;
}

.section-value-added .container {
    position: relative;
    z-index: 1;
}

.section-value-added .section-header {
    margin-bottom: 46px;
}

.section-value-added .value-added-title {
    color: var(--text-primary);
    font-size: 28px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.value-added-lead {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.value-added-grid {
    margin-top: 6px;
}

.value-added-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 28px 22px 26px;
    height: 100%;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.value-added-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.0), rgba(37, 99, 235, 0.7), rgba(168, 85, 247, 0.7), rgba(245, 158, 11, 0.0));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.value-added-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.18);
}

.value-added-card:hover::before {
    opacity: 1;
}

.value-added-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-added-grid .col-lg-4:nth-child(2) .value-added-icon {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
}

.value-added-grid .col-lg-4:nth-child(3) .value-added-icon {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
}

.value-added-grid .col-lg-4:nth-child(4) .value-added-icon {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
}

.value-added-grid .col-lg-4:nth-child(5) .value-added-icon {
    background: linear-gradient(135deg, #94a3b8, #475569);
    color: #fff;
}

.value-added-grid .col-lg-4:nth-child(6) .value-added-icon {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
}

.value-added-card:hover .value-added-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.value-added-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.value-added-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 575px) {
    .section-value-added {
        padding: 72px 0;
    }

    .section-value-added .value-added-title {
        font-size: 24px;
    }

    .value-added-card {
        padding: 24px 18px 22px;
    }
}

/* 公司 Logo */
.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ========================================
   CTA 行动号召
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn-light {
    border-radius: 30px;
    font-weight: 600;
    padding: 12px 36px;
    color: var(--primary);
}

.cta-buttons .btn-outline-light {
    border-radius: 30px;
    font-weight: 600;
    padding: 12px 36px;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .brand-name {
    font-size: 24px;
    color: #fff;
}

.footer-logo .brand-name em {
    color: var(--primary-light);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 280px;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-links {
    padding-top: 8px;
}

.footer-links h4 {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
}

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

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

.footer-links ul li a,
.footer-links ul.contact-info li {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links ul.contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul.contact-info li i {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

.footer-bottom a {
    font-size: 13px;
    color: rgba(255,255,255,.4);
    margin-left: 20px;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: rgba(255,255,255,.7);
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-4px);
}

/* ========================================
   滚动动画
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 307px;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }


    .content-section {
        padding: 60px 0;
    }

    .content-text h2 {
        font-size: 16px;
    }

    .section-badge {
        font-size: 26px;
    }

    .content-text {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .nav-right {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 26px;
    }

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

    .content-section {
        padding: 48px 0;
    }

    .content-text h2 {
        font-size: 15px;
    }

    .section-badge {
        font-size: 22px;
    }

    .image-wrapper {
        padding: 20px;
    }

    .flow-steps {
        flex-direction: column;
        gap: 8px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .section-header h2 {
        font-size: 22px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .footer-brand {
        margin-bottom: 30px;
    }

    .footer-links {
        margin-bottom: 20px;
    }

    .network-ring {
        gap: 16px;
    }

    .chain-level {
        gap: 10px;
    }

    .push-connections {
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 267px;
    }

    .hero-tags span {
        font-size: 12px;
        padding: 3px 10px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .btn-hero {
        padding: 10px 28px;
        font-size: 14px;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        display: none;
    }

    .dash-row {
        flex-direction: column;
        gap: 12px;
    }

    .cloud-agents {
        flex-direction: column;
        align-items: center;
    }
}

/* ===================== 申请试用弹窗 ===================== */
.trial-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.trial-modal-header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-bottom: none;
    padding: 18px 24px;
}

.trial-modal-header .modal-title {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.trial-form-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.trial-form .form-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.trial-form .input-group-text {
    background: #f8f9fa;
    border-right: none;
    color: #1a73e8;
}

.trial-form .form-control {
    border-left: none;
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.trial-form .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.trial-form .input-group:focus-within .input-group-text {
    border-color: #1a73e8;
}

.trial-form textarea.form-control {
    border-left: 1px solid #dee2e6;
}

.trial-form textarea.form-control:focus {
    border-color: #1a73e8;
}

.btn-submit-trial {
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-trial:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.trial-contact-card {
    background: linear-gradient(135deg, #f8f9ff, #eef2ff);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trial-contact-card h6 {
    font-weight: 600;
    color: #1a73e8;
    font-size: 16px;
    margin-bottom: 6px;
}

.trial-contact-tip {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.trial-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 115, 232, 0.1);
}

.trial-contact-item i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.trial-contact-item .contact-label {
    display: block;
    font-size: 12px;
    color: #999;
}

.trial-contact-item .contact-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.trial-contact-item a.contact-value:hover {
    color: #1a73e8;
}

.trial-qr-wrapper {
    text-align: center;
    margin-top: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trial-qr-wrapper .qr-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.trial-qr-img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.trial-qr-wrapper .qr-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    margin-bottom: 0;
}

/* 弹窗提交成功状态 */
.trial-success {
    text-align: center;
    padding: 40px 20px;
}

.trial-success .success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #34a853, #1e8e3e);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    animation: successBounce 0.5s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.trial-success h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.trial-success p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 991px) {
    .trial-contact-card {
        margin-top: 8px;
    }

    .trial-qr-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 575px) {
    .modal-dialog.modal-lg {
        margin: 12px;
    }

    .trial-modal-content .modal-body {
        padding: 16px;
    }

    .trial-qr-img {
        width: 110px;
        height: 110px;
    }
}
