﻿/* 遮罩层样式 - 已修改为固定定位和直角 */
.overlay-mask {
    position: fixed; /* 改为fixed定位，覆盖整个视窗 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    border-radius: 0; /* 改为直角 */
}

.overlay-mask .mask-content {
    max-width: 400px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overlay-mask .mask-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.overlay-mask .mask-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.overlay-mask .mask-count {
    color: #07c160;
    font-weight: 700;
    font-size: 1.3rem;
}

.overlay-mask .mask-button {
    background: #07c160;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.overlay-mask .mask-button:hover:not(:disabled) {
    background: #06ad56;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
}

.overlay-mask .mask-button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.overlay-mask .mask-button:active:not(:disabled) {
    transform: translateY(0);
}

.down-overlay .down-container {
    position: relative;
}

.down-overlay .card,
.down-overlay .guide-card,
.down-overlay .faq-card {
    overflow: hidden;
    position: relative;
}

/* 加载状态样式 */
.down-overlay .link-container.loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(7, 193, 96, 0.05);
    border: 2px dashed rgba(7, 193, 96, 0.3);
    border-radius: 12px;
}

.down-overlay .link-container.loading .link-text {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
}

/* 资源下载弹窗样式 */
.down-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1001;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding-bottom: 100px;
}

.down-overlay .down-header {
    padding: 25px 20px 15px;
    background-color: #f8f9fa;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 10;
}

.down-overlay .down-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #07c160;
}

.down-overlay .down-header h2 i {
    font-size: 1.6rem;
}

.down-overlay .down-header p {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

.down-overlay .close-down {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(7, 193, 96, 0.1);
    border: none;
    color: #07c160;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.down-overlay .close-down:hover {
    background: rgba(7, 193, 96, 0.2);
    transform: rotate(90deg);
}

.down-overlay .down-main {
    flex: 1;
    padding: 15px 20px;
    max-width: 800px;
    margin: 0 auto !important;
    width: 100%;
}

/* 基础样式重置与全局设置 */
.down-overlay * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.down-overlay .down-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 卡片样式 */
.down-overlay .card {
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(7, 193, 96, 0.15);
    overflow: hidden;
    position: relative;
    padding: 40px 30px;
    margin-bottom: 30px;
    border: 1px solid #07c160;
    transition: all 0.3s ease;
}

.down-overlay .card:hover {
    box-shadow: 0 12px 35px rgba(7, 193, 96, 0.2);
    border-color: #06ad56;
}

/* 装饰性元素 */
.down-overlay .wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2307c160" opacity="0.1"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%2307c160" opacity="0.2"/></svg>') no-repeat top;
    background-size: cover;
    z-index: 0;
}

.down-overlay .effect-circle {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1) 0%, rgba(7, 193, 96, 0) 70%);
    z-index: 0;
}

/* 头部区域 */
.down-overlay .header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.down-overlay .title-container {
    flex: 1;
}

.down-overlay .title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.down-overlay .subtitle2 {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.down-overlay .status-dot {
    width: 8px;
    height: 8px;
    background-color: #07c160;
    border-radius: 50%;
    margin-right: 8px;
}

/* 内容区域 */
.down-overlay .content {
    position: relative;
    z-index: 1;
}

.down-overlay .section {
    margin-bottom: 30px;
}

.down-overlay .section-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.down-overlay .section-title i {
    margin-right: 10px;
    color: #07c160;
}

/* 信息框样式 */
.down-overlay .link-container {
    background: linear-gradient(135deg, #f0f9f4 0%, #e6f7ed 100%);
    border: 1px solid #b8e6cf;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.08);
    margin-bottom: 20px;
}

.down-overlay .link-container:last-child {
    margin-bottom: 0;
}

.down-overlay .link-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a3c5e;
    padding-left: 20px;
    position: relative;
}

.down-overlay .link-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #07c160;
    border-radius: 50%;
}

.down-overlay .link-text {
    font-size: 16px;
    word-break: break-all;
    margin-bottom: 15px;
    padding: 12px 16px;
    color: #1a3c5e;
    background: linear-gradient(135deg, #f7fbff 0%, #e8f2ff 100%);
    border: 1px solid #c3d9ff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 125, 201, 0.1);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

.down-overlay .link-text:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #d9e9ff 100%);
    border-color: #1e7dc9;
    box-shadow: 0 4px 12px rgba(30, 125, 201, 0.15);
}

.down-overlay .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.down-overlay .btn {
    flex: 1;
    min-width: 100px;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 复制按钮颜色 */
.down-overlay .btn-copy {
    background: #1e7dc9;
    color: white;
}

.down-overlay .btn-copy:hover:not(:disabled) {
    background: #0d6db8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 125, 201, 0.3);
}

/* 复制成功状态 */
.down-overlay .btn-copy.success {
    background: #07c160 !important;
    cursor: default;
}

.down-overlay .btn-copy.success i {
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.down-overlay .btn-copy:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.down-overlay .btn-open {
    background: #07c160;
    color: white;
}

.down-overlay .btn-open:hover {
    background: #06ad56;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(7, 193, 96, 0.3);
}

/* 波纹效果 */
.down-overlay .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 使用指南和常见问题卡片样式 */
.down-overlay .guide-card, .down-overlay .faq-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(7, 193, 96, 0.1);
    margin-bottom: 30px;
    border: 1px solid #07c160;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.down-overlay .guide-card:hover, .down-overlay .faq-card:hover {
    box-shadow: 0 12px 35px rgba(7, 193, 96, 0.15);
    border-color: #06ad56;
}

/* 为指南和问题卡片添加装饰性元素 */
.down-overlay .guide-card .wave-top, .down-overlay .faq-card .wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2307c160" opacity="0.1"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%2307c160" opacity="0.2"/></svg>') no-repeat top;
    background-size: cover;
    z-index: 0;
}

.down-overlay .guide-card .effect-circle, .down-overlay .faq-card .effect-circle {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1) 0%, rgba(7, 193, 96, 0) 70%);
    z-index: 0;
}

.down-overlay .guide-card .content, .down-overlay .faq-card .content {
    position: relative;
    z-index: 1;
}

.down-overlay .guide-card .section, .down-overlay .faq-card .section {
    margin-bottom: 0;
}

.down-overlay .steps {
    margin-bottom: 0;
}

.down-overlay .step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.down-overlay .step:last-child {
    margin-bottom: 0;
}

.down-overlay .step-number {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.down-overlay .step-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.down-overlay .step-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.down-overlay .faq-item {
    margin-bottom: 15px;
    border: 1px solid #d1e7dd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.down-overlay .faq-item:hover {
    border-color: #07c160;
    box-shadow: 0 4px 8px rgba(7, 193, 96, 0.1);
}

.down-overlay .faq-item:last-child {
    margin-bottom: 0;
}

.down-overlay .faq-question {
    padding: 12px 15px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e6f7ed 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a3c5e;
}

.down-overlay .faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: white;
}

.down-overlay .faq-answer.active {
    padding: 15px;
    max-height: 300px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .down-overlay .down-main {
        padding: 15px;
    }
    
    .down-overlay .down-header {
        padding: 20px 15px 10px;
    }
    
    .down-overlay .down-header h2 {
        font-size: 1.5rem;
    }
    
    .down-overlay .close-down {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .down-overlay .card, .down-overlay .guide-card, .down-overlay .faq-card {
        padding: 30px 20px;
    }
    
    .down-overlay .title {
        font-size: 22px;
    }
    
    .down-overlay .link-text {
        font-size: 15px;
        padding: 10px 14px;
    }
    
    .down-overlay .btn {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .down-overlay .guide-card, .down-overlay .faq-card {
        padding: 30px 20px;
    }
    
    .down-overlay .step-content h3 {
        font-size: 0.95rem;
    }
    
    .down-overlay .step-content p {
        font-size: 0.85rem;
    }
    
    .down-overlay .faq-question {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .down-overlay .faq-answer {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .down-overlay .down-header h2 {
        font-size: 1.3rem;
    }
    
    .down-overlay .down-header p {
        font-size: 0.85rem;
    }
    
    .down-overlay .down-main {
        padding: 12px;
    }
    
    .down-overlay .card, .down-overlay .guide-card, .down-overlay .faq-card {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .down-overlay .title {
        font-size: 20px;
    }
    
    .down-overlay .link-container {
        padding: 12px 15px;
    }
    
    .down-overlay .link-text {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .down-overlay .btn-group {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .down-overlay .btn {
        min-width: auto;
        width: 48%;
        margin-bottom: 0;
    }
    
    .down-overlay .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .down-overlay .step-content h3 {
        font-size: 0.9rem;
    }
    
    .down-overlay .step-content p {
        font-size: 0.8rem;
    }
}