
.copy-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 25px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #FF0D00;
    margin: 4px;
    
}

.copy-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.copy-btn:active {
    transform: translateY(1px);
}

.copy-btn::after {
    content: "点击复制";
    font-size: 12px;
    color: #666;
    margin-left: 8px;
    opacity: 0.8;
}

.copy-btn.copied {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.copy-btn.copied::after {
    content: "已复制!";
    color: #4caf50;
    opacity: 1;
}




.copy-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #4e6ef2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s;
}

.extract-code-btn {
    padding: 2px 8px;
    background: linear-gradient(135deg, #7eccdb 0%, #4369ff 100%);
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    white-space:nowrap; 
}

.extract-code-btn:hover {
    background: linear-gradient(135deg, #3b5bdb 0%, #2a4bc2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 110, 242, 0.3);
}

.extract-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.extract-code-btn:hover::before {
    left: 100%;
}

.extract-code-btn.copied {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    animation: bounce 0.5s ease;
}

.extract-code-btn i {
    transition: transform 0.3s ease;
}

.extract-code-btn:hover i {
    transform: scale(1.2);
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.copy-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    pointer-events: none;
    border-radius: 50%;
    animation: ripple 0.6s linear;
}







.file-download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #006eff 0%, #0047ab 100%);
    color: #fff !important;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 110, 255, 0.3);
    border: none;
    cursor: pointer;
    margin-top: 0px;
}

.file-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 110, 255, 0.4);
    animation: pulse 1.5s infinite;
}

.file-download-btn:active {
    transform: translateY(1px);
}

.download-icon {
    width: 18px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.6s;
}

.file-download-btn:hover .hover-effect {
    left: 100%;
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: rippleEffect 3s linear infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 110, 255, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 110, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 110, 255, 0); }
}

@keyframes rippleEffect {
    from {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    to {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* 点击动画 */
.file-download-btn:active .download-icon {
    transform: scale(0.9);
}

.file-download-btn:active .btn-text {
    display: inline-block;
    animation: textBounce 0.3s ease;
}

@keyframes textBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}


/* 在styles.css中添加 */
.download-code {
    transition: all 0.3s ease;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(0, 110, 255, 0.1);
}
.download-code:hover {
    background: rgba(0, 110, 255, 0.2);
    transform: scale(1.05);
}
.download-code:active {
    transform: scale(0.95);
}


/* 新增的动画样式 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes lift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

.small-link-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    animation: pulse 2s infinite;
}

/* 流光效果 */
.small-link-button:hover:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shine 0.6s ease;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

/* 悬停抬升效果 */
.small-link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1);
}

/* 点击涟漪效果 */
.small-link-button:active:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    border-radius: 50%;
    animation: ripple 0.6s ease-out;
}

/* 图标动画 */
.small-link-button:active img {
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

/* 文字跳动 */
.small-link-button:active span {
    display: inline-block;
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.download-code, .download-code2 {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-code:hover, .download-code2:hover {
    color: #00a8ff;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0,168,255,0.2);
}

/* 文件名称动画 */
.alternate-file-name {
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* 过渡效果 */
.small-link-button, .download-code, .download-code2, .alternate-file-name {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.xvxian {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    margin: 10px 0;
    transition: all 0.4s ease;
}

.xvxian:hover {
    transform: scaleY(1.5);
    opacity: 0.6;
}







#countdown {
    display: block !important; /* 强制显示 */
    font-size: 14px;
    background: #fff8e5;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0;
    border: 1px solid #ffe082;
}




/* 添加以下样式到styles.css */
.password-section {
    margin-top: 20px;
    display: flex;
    gap: 30px;
}

.password-input-group {
    display: flex;
    gap: 10px;
 
}

#download_password_input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#submit_password_button {
    padding: 10px 25px;
    background-color: #4e6ef2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit_password_button:hover {
    background-color: #3b5bdb;
}


.pan-content {
    padding: 20px;
    border-radius: 5px;
    width: auto;
    background-color: #f5f5f5;
    display: flex;
}
.flex {
    display: flex;
}
.ac {
    align-items: center;
}
.jsb {
    justify-content: space-between;
}
.mr20 {
    margin-right: 20px;
}

.flex0 {
    flex: 0 0 auto;
}
.text-ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.file-download-name {
    font-size: 16px;
    color: #333;
}
.but {
    display: inline-block;
    padding: 8px 16px;
    color: #fff; /* 文字颜色改为白色 */
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: linear-gradient(to right,#4dd3ff , #0081ff);
}
.show-permission-message {
    cursor: not-allowed;
}

.file-download-info {
    margin-top: 10px;
    padding-top: 10px;
   
}
.file-download-desc {
    justify-content: space-between;
    color: #666;
}


.desc-left{

    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1px 5px;
    font-size:12px;
    margin-left:75%;
    white-space:nowrap;  
    
}



.desc-left,
.desc-right {
    font-size: 14px;
    padding: 10px;
}
.ngfile-download-icon img {
    width: 45px;
    height: 45px;
    border-radius: 4px;
}
/* 添加虚线边框 */
.download-code {
    border: 3px dashed #006eff;
    padding: 4px 8px;
    border-radius: 21px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.download-code2 {
    border: 3px dashed #006eff;
    padding: 3px 50px;
    border-radius: 21px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-code2:hover {
    background-image: linear-gradient(45deg, #afebff 0%, #53a9ff 100%);
}


.download-code:hover {
    background-image: linear-gradient(45deg, #afebff 0%, #53a9ff 100%);
}

.small-links-container {
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
}
.small-link {
    font-size: 15px;
    margin-top: 30px;
}
.small-link a {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    background: linear-gradient(to right,#4dd3ff , #0081ff);
    border-radius: 3px;
    text-decoration: none;
}
.small-link a:hover {
      background-image: linear-gradient(45deg,  #008fbe 0%, #003972 100%);
      color: #272822;
}
.small-link span {
    margin-left: 5px;
    font-size: 13px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 20px;
    width: 80%;
    max-width: 350px;
    border-radius: 5px;
    text-align: center;
}
.ngtab-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}
.ngtab {
    background-color: #c0c0c0;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    border-radius: 10%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.ngtab.active {
    background-color: #f7c1ff;
    box-shadow: 
        inset 5px 5px 10px #bebebe, /* 内部阴影，模拟按下的效果 */
        inset -5px -5px 10px #ffffff; /* 外部阴影，模拟凸起的效果 */
}
.qr-container {
    width: 240px;
    height: 240px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10%;
    overflow: hidden;
    box-shadow: 5px 6px 15px #686868;
}
.qr-container img {
    width: 80%;
    height: 80%;
    
    object-fit: cover;
}
.ngtab-content {
    display: none;
    padding: 6px 12px;
 
}
.ngtab-content.active {
    display: block;
}
strong span {
    font-weight: bold;
}
strong span.blue {
    color: blue;
}
strong span.green {
    color: green;
}




/* 添加在styles.css末尾 */
@media screen and (max-width: 768px) {
    /* 整体布局调整 */
    .pan-content {
        padding: 15px;
        margin: 10px -15px;
        width: calc(100% + 30px);
    }

    /* 下载按钮区域 */
    .flex.ac.jsb {
        flex-direction: column;
        align-items: flex-start;
    }

    .flex0.ml20 {
        margin: 15px 0 0 0;
        width: 100%;
    }

    /* 主下载按钮 */
    .file-download-btn {
        width: 100%;
        padding: 12px;
        justify-content: center;
    }

    /* 文件名称 */
    .text-ellipsis-2 {
        max-width: 80vw;
        white-space: normal;
        line-height: 1.4;
        margin: 10px 0;
    }

    /* 微信公众号区域 */

    .wechat-notice img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    /* 密码输入区域 */
    .input-gradient-border {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
    }

    .password-input-group {
        flex-direction: column;
    }

    .glowing-input,
    .particle-button {
        width: 100% !important;
    }

    /* 提取码相关 */
    .download-code-container {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 60px;
    }

    .desc-left {
        margin-left: 0;
        display: block;
        text-align: center;
    }

    /* 小链接按钮 */
    .small-link {
        width: 100%;
        margin: 10px 0;
    }

    .small-link-button {
        width: 100%;
        text-align: center;
        padding: 8px;
    }

    /* 复制按钮调整 */
    .copy-btn {
        padding: 8px 15px;
        font-size: 16px;
        margin: 5px auto;
        width: fit-content;
    }

    /* 二维码文字 */
    .wechat-notice p {
        font-size: 14px;
        margin: 15px 0;
        line-height: 1.5;
    }

    /* 模态框调整 */
    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .qr-container {
        width: 200px;
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    /* 更小屏幕调整 */
    .ngfile-download-icon img {
        width: 40px;
        height: 40px;
    }

    .file-download-name {
        font-size: 14px;
    }

    .but {
        padding: 8px 12px;
        font-size: 14px;
    }

    .extract-code-btn {
        font-size: 12px;
        padding: 2px 6px;
    }

    /* 密码输入框 */
    .glowing-input {
        font-size: 14px;
        padding: 12px;
    }

    /* 倒计时文字 */
    #countdown {
        font-size: 12px;
        padding: 6px;
    }
}

/* 触控优化 */
@media (hover: none) and (pointer: coarse) {
    .file-download-btn:hover,
    .small-link-button:hover,
    .extract-code-btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .small-link-button:active,
    .extract-code-btn:active {
        transform: scale(0.95) !important;
    }

    .ripple {
        display: none; /* 在移动设备上禁用涟漪效果 */
    }
}























