/*按钮 - 现代简约白色主题*/
body{width:100%; overflow-x:hidden;}
.clear{clear: both;}

.tncode {
    width: 250px;
    line-height: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 1;
    text-align: center;
    /* 现代简约样式 */
    background: #ffffff;
    border: 1.5px solid #e0e6ed;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tncode:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.tncode:active {
    transform: scale(0.98);
}

/* 按钮内部元素 */
.tncode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
}

/* 涟漪中心圆点 */
.ripple-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
    z-index: 2;
    animation: ripple-dot-pulse 2s ease-in-out infinite;
}

/* 涟漪圆圈 - 第一层 */
.ripple-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    transform: translate(-50%, -50%);
    animation: ripple-expand 2s ease-out infinite;
    opacity: 0;
}

/* 涟漪圆圈 - 第二层（延迟） */
.ripple-circle-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    transform: translate(-50%, -50%);
    animation: ripple-expand 2s ease-out infinite;
    animation-delay: 0.7s;
    opacity: 0;
}

/* 涟漪圆圈 - 第三层（延迟） */
.ripple-circle-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    transform: translate(-50%, -50%);
    animation: ripple-expand 2s ease-out infinite;
    animation-delay: 1.4s;
    opacity: 0;
}

/* 中心点脉冲动画 */
@keyframes ripple-dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 涟漪扩散动画 */
@keyframes ripple-expand {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    100% {
        width: 28px;
        height: 28px;
        opacity: 0;
    }
}

/* 悬停时加速动画 */
.tncode:hover .ripple-dot {
    animation-duration: 1s;
}

.tncode:hover .ripple-circle,
.tncode:hover .ripple-circle-2,
.tncode:hover .ripple-circle-3 {
    animation-duration: 1s;
}

.tncode-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 脉冲动画 */
@keyframes tncode-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 2px 16px rgba(102, 126, 234, 0.3), 0 0 0 6px rgba(102, 126, 234, 0.08);
    }
}

/* 涟漪动画 */
@keyframes tncode-ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 加载状态 */
.tncode-loading {
    pointer-events: none;
    opacity: 0.7;
}

.tncode-loading .tncode-icon {
    animation: tncode-loading-spin 1s linear infinite;
}

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

/* 成功状态 */
.tncode-success {
    background: #ffffff;
    border-color: #38ef7d;
    box-shadow: 0 2px 12px rgba(56, 239, 125, 0.25);
    color: #11998e;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .tncode {
        /* width: 100%; */
        max-width: 300px;
        font-size: 13px;
    }
    
    .tncode-icon {
        font-size: 14px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .tncode {
        background: #1a1a1a;
        border-color: #3a3a3a;
        color: #e0e0e0;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    }
}

/*浮层*/
.tncode_div_bg{
    width: 100%;height: 100%;
    position: fixed;
    top:0;
    left:0;
    z-index:1000;
    background-color: rgba(0,0,0,0.5);
    opacity:0.3;
    filter: alpha(opacity=30); background-color:#000;
    *zoom:1;
    display: none;
}
.tncode_div{
    display: none;
    background-color: white;
    z-index: 1000000;
    width: 260px;height: 260px;
    position: fixed;
    left: 50%;top:50%;
    margin-top: -130px;
    margin-left: -130px;
    border: 1px solid #d1d1d1;
    border-radius: 2px;
    overflow: hidden;
    filter: progid:DXImageTransform.Microsoft.Shadow(color='#969696',Direction=135, Strength=5);/*for ie6,7,8*/
    /*background-color: #ccc;*/
    -moz-box-shadow:2px 2px 5px #969696;/*firefox*/
    -webkit-box-shadow:2px 2px 5px #969696;/*webkit*/
    box-shadow:2px 2px 5px #969696;/*opera或ie9*/
}
.tncode_div .tncode_canvas_bg{
    z-index: 0;
}
.tncode_div .tncode_canvas_mark{
    z-index: 10000;
}
.tncode_div canvas{
    position: absolute;
    left: 10px;
    top: 10px;
}
.tncode_div .loading{
    position: absolute;
    left: 10px;
    top: 10px;
    background: #f8f9fa;
    width: 240px;
    height: 150px;
    text-align: center;
    box-sizing:border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #5a6c7d;
    font-size: 14px;
    font-weight: 400;
    gap: 15px;
}

/* 加载动画容器 */
.tncode_div .loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}

/* 旋转动画 */
@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 加载文字脉冲效果 */
.tncode_div .loading {
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}
.dd{
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: ddf 0.1s ease-in 0s infinite;
    -o-animation: ddf 0.1s ease-in 0s infinite;
    animation: ddf 0.1s ease-in 0s infinite;
}
@-webkit-keyframes ddf {
    0% {-webkit-transform: translate(-8px, 3px);}
    20% {-webkit-transform: translate(-3px, 1.5px);}
    50% {-webkit-transform: translate(0px, 0px) ;}
    70% {-webkit-transform: translate(5px, -1.5px) ;}
    100% {-webkit-transform: translate(0px, 0px);}
}
@-o-keyframes ddf {
    0% {-o-transform: translate(-8px, 3px);}
    20% {-o-transform: translate(-3px, 1.5px);}
    50% {-o-transform: translate(0px, 0px) ;}
    70% {-o-transform: translate(5px, -1.5px) ;}
    100% {-o-transform: translate(0px, 0px);}
}
@-moz-keyframes ddf {
    0% {-moz-transform: translate(-8px, 3px);}
    20% {-moz-transform: translate(-3px, 1.5px);}
    50% {-moz-transform: translate(0px, 0px) ;}
    70% {-moz-transform: translate(5px, -1.5px) ;}
    100% {-moz-transform: translate(0px, 0px);}
}
@keyframes ddf {
    0% {transform: translate(-8px, 3px);}
    20% {transform: translate(-3px, 1.5px);}
    50% {transform: translate(0px, 0px) ;}
    70% {transform: translate(5px, -1.5px) ;}
    100% {transform: translate(0px, 0px);}
}
.hgroup{
    z-index: 20000;
    content: "";
    position: absolute;
    left: -800px;
    top: 70px;
    width: 250px;
    height: 15px;
    background-color: rgba(255,255,255,.5);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: searchLights 3s ease-in 0s infinite;
    -o-animation: searchLights 3s ease-in 0s infinite;
    animation: searchLights 3s ease-in 0s infinite;
}






@-webkit-keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}

@-o-keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}

@-moz-keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}

@keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}




/*拉条*/
.slide,.slide_block,.tools .tncode_close,.tools .tncode_refresh{
    background-repeat: no-repeat;
    background-image: url('img/icon.png');
}
.tncode_msg_ok{
    background-color: #24C628;
}
.tncode_msg_error{
    background-color: #DE5145;
}
.tncode_msg_ok,.tncode_msg_error{
    box-sizing: unset;
    position: absolute;
    top:136px;
    left: 10px;
    width: 220px;
    height: 20px;
    color: #fff;
    margin: 0;
    padding: 2px 10px;
    overflow: visible;
    background-position: 0px 0px;
    font-size: 14px;
    opacity:0;
    filter: alpha(opacity=0);
    z-index: 10000;
}
.slide{
    position: absolute;
    top:160px;
    width: 93.52%;
    height: 0px;
    background-color: white;
    background-size: 100%;
    margin: 5.39% 3.24%;
    padding: 0px 0px 13.67%;
    overflow: visible;
    background-position: 0px 0px;
}

.tools{
    position: absolute;
    top:210px;
    width: 93.52%;
    height: 0px;
    background-color: white;
    background-size: 100%;
    margin: 5.39% 3.24%;
    padding: 5px 0px 13.67%;
    overflow: visible;
    background-position: 0px 0px;
    border-top: 1px solid #EEEEEE;
}

.slide_block{
background-position: 0px 12.9794%;
width: 65px;
height: 65px;
    position: absolute;
    left: 0px;
    top: 0px;
margin: -4.62% 0 0 -2.31%;
cursor: pointer;
}
.slide_block_text{
background-position: 0px 12.9794%;
height: 65px;
    position: absolute;
    left: 65px;
    top: 20px;
margin: -4.62% 0 0 -2.31%;
cursor: pointer;
font-size: 14px;
    color: rgb(136, 148, 157);
}

.tncode_canvas_bg,.tncode_canvas_mark{
   /* width: 240px;*/
}

.tools .tncode_close{
    background-position: 0 50%;
    height: 30px;
    width: 30px;
    float: left;
    margin-right: 10px;
    cursor: pointer;
}
.tools .tncode_refresh{
    background-position: 0 94%;
    height: 30px;
    width: 30px;
    float: left;
    cursor: pointer;
}
.tools .tncode_tips{
    float: right;
}
.tools .tncode_tips a{
    text-decoration: none;
    font-size: 10px;
    color: rgb(136, 148, 157);
}


.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.ai-button {
    background-color: #4A90E2;
    color: white !important;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.ai-button:hover {
    background-color: #357ABD;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.ai-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}