/* index1 页面补充样式（抽离自 index1.html） */

/* 统一占位符样式 */
.placeholder-box {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #94a3b8;
    font-weight: 600;
    border-radius: 1.5rem;
    width: 100%;
    aspect-ratio: 9 / 18;
    /* 模拟手机比例 */
    max-width: 280px;
}

.bg-brand .placeholder-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* 侧边客服组件 */
.cs-panel {
    transform: translateX(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cs-open .cs-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.cs-open .cs-backdrop {
    pointer-events: auto;
    opacity: 1;
}

.cs-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* 模态框样式 */
#salesModal.show {
    display: flex;
}

#salesModal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 体验模态框样式 */
#experienceModal.show {
    display: flex;
}

#experienceModal.show .experience-modal-content {
    transform: scale(1);
    opacity: 1;
}

#donateModal.show {
    display: flex;
}

#donateModal.show .donate-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 导航栏选中效果 */
.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
}

.nav-link.active {
    background-color: #1A69FF;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(26, 105, 255, 0.2);
}

.nav-link-plain.active {
    background-color: transparent;
    color: inherit !important;
    box-shadow: none;
}

.nav-link:hover:not(.active) {
    background-color: rgba(26, 105, 255, 0.05);
    color: #1A69FF;
}

/* --- 创意按钮优化 --- */
.btn-hero-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #1A69FF 0%, #3B82F6 100%);
    color: white;
    font-weight: 800;
    border-radius: 1.25rem;
    box-shadow: 0 8px 16px -4px rgba(26, 105, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 24px -6px rgba(26, 105, 255, 0.35);
    color: white;
}

.btn-hero-primary i {
    transition: transform 0.3s ease;
}

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

.btn-hero-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #1A69FF;
    font-weight: 800;
    border-radius: 1.25rem;
    border: 2px solid rgba(26, 105, 255, 0.1);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(26, 105, 255, 0.02);
    border-color: rgba(26, 105, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
    color: #1A69FF;
}

/* 新增：优化冗余 class */

/* 导航与弹窗通用蓝色按钮 */
.btn-brand-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background-color: #1A69FF;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(26, 105, 255, 0.2);
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    outline: none;
    appearance: none;
    white-space: nowrap;
}

.btn-brand-primary:hover {
    filter: brightness(1.1);
}

/* 导航与弹窗通用白色按钮 */
.btn-outline-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    outline: none;
    appearance: none;
    white-space: nowrap;
}

.btn-outline-secondary:hover {
    background-color: #f8fafc;
}

/* 背景装饰光斑 */
.hero-gradient-spot {
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
}

/* 功能项图标盒子 */
.feature-icon-wrapper {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1);
    transition: all 0.3s;
}

.feature-item:hover .feature-icon-wrapper {
    transform: translateY(-0.25rem) scale(1.1);
}

.feature-item.active .feature-icon-wrapper {
    box-shadow: 0 0 0 4px rgba(26, 105, 255, 0.2);
}

/* 文章卡片 */
.article-card-custom {
    cursor: pointer;
    background-color: #ffffff;

    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -5px rgba(226, 232, 240, 0.4);
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.article-card-custom:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

/* 技术栈卡片 */
.tech-card {
    background-color: #ffffff;
    padding: 1.5rem;
    /* p-6 */
    border-radius: 2rem;
    box-shadow: 0 20px 25px -5px rgba(226, 232, 240, 0.5);
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .tech-card {
        padding: 2rem;
        /* md:p-8 */
    }
}

.tech-card:hover {
    transform: translateY(-0.5rem);
}

/* 技术栈图标 */
.tech-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .tech-icon-wrapper {
        width: 4rem;
        height: 4rem;
        font-size: 1.875rem;
    }
}

.tech-card:hover .tech-icon-wrapper {
    color: #ffffff !important;
}

.tech-icon-blue {
    background-color: #eff6ff;
    color: #1A69FF;
}

.tech-card:hover .tech-icon-blue {
    background-color: #1A69FF;
}

.tech-icon-green {
    background-color: #f0fdf4;
    color: #22c55e;
}

.tech-card:hover .tech-icon-green {
    background-color: #22c55e;
}

.tech-icon-emerald {
    background-color: #ecfdf5;
    color: #10b981;
}

.tech-card:hover .tech-icon-emerald {
    background-color: #10b981;
}

.tech-icon-red {
    background-color: #fef2f2;
    color: #ef4444;
}

.tech-card:hover .tech-icon-red {
    background-color: #ef4444;
}

.tech-icon-orange {
    background-color: #fff7ed;
    color: #f97316;
}

.tech-card:hover .tech-icon-orange {
    background-color: #f97316;
}

/* 品牌标签 */
.badge-brand {
    display: inline-block;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1A69FF;
    background-color: #eff6ff;
    border-radius: 9999px;
    text-transform: uppercase;
}

/* 生态闭环圆环 */
.ecosystem-circle {
    position: absolute;
    width: 8rem;
    /* w-32 */
    height: 8rem;
    /* h-32 */
    background-color: #ffffff;
    border-radius: 9999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* shadow-2xl */
}

@media (min-width: 768px) {
    .ecosystem-circle {
        width: 12rem;
        /* md:w-48 */
        height: 12rem;
        /* md:h-48 */
    }
}

/* 弹窗主体容器 */
.modal-body-custom {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    opacity: 0;
}

/* --- 全局布局与板块基础类 --- */
.nav-main {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.nav-main.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.container-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo-image {
    width: 13rem;
}

.logo-divider {
    width: 1px;
    height: 28px;
    background: rgba(100, 116, 139, 0.35);
}

.logo-subtitle {
    height: 34px;
    width: auto;
    display: block;
}

.nav-inner {
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section 基础间距 */
.section-hero {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 6rem;
    background-color: #ffffff;
    overflow: hidden;
}

.section-data {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #1A69FF;
    color: #ffffff;
    overflow: hidden;
}

.section-features {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.section-mall {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #1A69FF;
    color: #ffffff;
    overflow: hidden;
}

.section-pay,
.section-partners,
.section-news {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* 标题样式 */
.title-xl-dark {
    font-size: 2.25rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-xl-white {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {

    .title-xl-dark,
    .title-xl-white {
        font-size: 3rem;
    }

    .lg\:text-8xl {
        font-size: 6rem;
    }

    /* 特殊处理 Hero 标题 */
}

.subtitle-lg-gray {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.625;
}

.subtitle-lg-blue {
    font-size: 1.25rem;
    color: rgba(219, 234, 254, 0.7);
    font-weight: 500;
}

/* 时间轴 */
.timeline-item {
    display: flex;
    gap: 2rem;
}

.timeline-year-box {
    width: 5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.25rem;
}

.timeline-year-text {
    color: rgba(191, 219, 254, 0.5);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.timeline-content-box {
    flex: 1;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 2rem;
    padding-bottom: 2rem;
    transition: border-color 0.3s;
}

.group:hover .timeline-content-box {
    border-left-color: rgba(255, 255, 255, 0.4);
}

/* 数据统计 */
.stat-icon {
    color: #93c5fd;
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.group:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fde047;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 1.875rem;
    }
}

/* 功能网格 */
.grid-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 0.25rem;
}

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

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.feature-item:hover .feature-title,
.feature-item.active .feature-title {
    color: #1A69FF;
}

/* 文章卡片标题 */
.article-title-custom {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.group:hover .article-title-custom {
    color: #1A69FF;
}

/* 模态框主体修正 */
.experience-modal-main {
    position: relative;
    width: 100%;
    max-width: 42rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding-top: 2rem;
    transition: all 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.sales-modal-main {
    position: relative;
    width: 100%;
    max-width: 24rem;
    background-color: #ffffff;
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.donate-modal-main {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    transition: all 0.3s;
}

.donate-modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.footer-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

/* 深度优化：减少 HTML 中的 class 冗余 */
.hero-spot-1 {
    position: absolute;
    top: -6rem;
    left: -6rem;
    width: 520px;
    height: 520px;
    background: linear-gradient(to bottom right, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.2));
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
}

.hero-spot-2 {
    position: absolute;
    top: 2.5rem;
    right: -6rem;
    width: 560px;
    height: 560px;
    background: linear-gradient(to bottom right, rgba(52, 211, 153, 0.18), rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.18));
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
}

.btn-group-hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .btn-group-hero {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .btn-group-hero {
        justify-content: flex-start;
    }
}

.container-data-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .container-data-flex {
        flex-direction: row;
        gap: 5rem;
    }
}

.stat-card-inner {
    position: relative;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1), transparent);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
}

.stat-header-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.stat-item-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cs-panel-main {
    position: absolute;
    right: 0;
    bottom: 4rem;
    width: 252px;
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.cs-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: rgba(26, 105, 255, 0.1);
    color: #1A69FF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cs-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}

.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.modal-close-btn:hover {
    background-color: #f1f5f9;
    color: #64748b;
}

.qrcode-container {
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    aspect-ratio: 1 / 1;
    max-width: 255px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.qrcode-container-small {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 更多细节优化 */
.badge-news {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 0.5rem;
}

.grid-partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .grid-partners {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-partners {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.grid-tech {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .grid-tech {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2rem;
    }
}

.article-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
    margin-bottom: 0.5rem;

}

/* 极致清理：最后几个稍长的 class */
.cs-close-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.cs-toggle-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: #07C160;
    color: #ffffff;
    shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.footer-social-icons {
    color: #cbd5e1;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}
