/*===============================================
  演示中心页面 美化样式 - 2026年7月7日
===============================================*/

/* 页面加载动画 */
@keyframes page-slide-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题区域样式 */
.d_box {
    position: relative;
    overflow: hidden;
}

/* 按钮区域美化 */
.m_btn {
    position: relative;
    z-index: 10;
    animation: page-slide-in 0.8s ease;
}

/* 主题按钮增强 */
.cl-effect-2 a {
    position: relative;
    display: inline-block;
    margin: 0 15px 15px 0;
    outline: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cl-effect-2 a span {
    position: relative;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cl-effect-2 a:hover span {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* 演示卡片通用样式 */
.qihureddiv,
.qihuoradiv,
.qihuyewdiv,
.qihugrediv,
.qihubludiv,
.qihupurdiv {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    animation: page-slide-in 0.8s ease;
}

/* 卡片容器 */
.sdk-download {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 演示卡片样式 */
.android1 {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    flex: 1;
}

.android1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ed4646, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.android1:hover::before {
    opacity: 1;
}

.android1:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* 左浮动卡片 */
.android1.fl::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ed4646, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.android1.fl:hover::after {
    opacity: 1;
}

/* 右浮动卡片 */
.android1.fr::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ed4646, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.android1.fr:hover::after {
    opacity: 1;
}

/* 卡片标题 */
.android1 > div > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.android1:hover > div > a {
    color: #ed4646;
}

/* 卡片图标 */
.android1 .ios-android1 {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ed4646, #ff6b6b);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.android1:hover .ios-android1 {
    transform: scale(1.1) rotate(5deg);
}

/* 卡片描述文字 */
.android1 p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    word-break: break-all;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .sdk-download {
        flex-direction: column;
    }
    
    .android1.fl,
    .android1.fr {
        float: none;
        width: 100%;
    }
    
    .cl-effect-2 a span {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 卡片淡入动画 */
.android1 {
    opacity: 0;
    animation: fade-in-up 0.6s ease forwards;
}

.android1:nth-child(1) { animation-delay: 0.1s; }
.android1:nth-child(2) { animation-delay: 0.2s; }
.android1:nth-child(3) { animation-delay: 0.3s; }
.android1:nth-child(4) { animation-delay: 0.4s; }
.android1:nth-child(5) { animation-delay: 0.5s; }
.android1:nth-child(6) { animation-delay: 0.6s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 区域标题样式 */
.qihureddiv > .sdk-download:first-child,
.qihuoradiv > .sdk-download:first-child,
.qihuyewdiv > .sdk-download:first-child,
.qihugrediv > .sdk-download:first-child,
.qihubludiv > .sdk-download:first-child,
.qihupurdiv > .sdk-download:first-child {
    position: relative;
    margin-bottom: 30px;
}

.qihureddiv > .sdk-download:first-child::before,
.qihuoradiv > .sdk-download:first-child::before,
.qihuyewdiv > .sdk-download:first-child::before,
.qihugrediv > .sdk-download:first-child::before,
.qihubludiv > .sdk-download:first-child::before,
.qihupurdiv > .sdk-download:first-child::before {
    content: '演示站点';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*===============================================
  UI交互增强
===============================================*/

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ed4646, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 70, 70, 0.3);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 70, 70, 0.4);
}

.back-to-top::before {
    content: '↑';
    font-size: 20px;
    color: #fff;
    font-weight: bold;
}

/* 滚动进度条 */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ed4646, #ff6b6b);
    z-index: 9999;
    transition: width 0.1s ease;
}
