/**
 * 极简弹窗样式 - 无动效、无渐变、无图标
 */

/* 弹窗按钮样式 */
button.moedes-popup-button.moedes-popup-trigger {
    background: #FFA500 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    transition: background-color 0.2s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
}

button.moedes-popup-button.moedes-popup-trigger:hover {
    background: #FF8C00 !important;
    color: #ffffff !important;
}

/* 弹窗遮罩层 - 默认隐藏 */
.moedes-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.moedes-popup-overlay.active {
    display: flex !important;
}

/* 弹窗主体 */
.moedes-popup-content {
    background: #ffffff;
    border-radius: 4px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* 弹窗头部 */
.moedes-popup-title {
    background: #f8f9fa;
    color: #374151;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

/* 关闭按钮 */
.moedes-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.moedes-popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* 弹窗内容区域 */
.moedes-popup-inner-content {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    line-height: 1.6;
    color: #374151;
    font-size: 14px;
}

/* 简单滚动条 */
.moedes-popup-inner-content::-webkit-scrollbar {
    width: 4px;
}

.moedes-popup-inner-content::-webkit-scrollbar-track {
    background: #f9fafb;
}

.moedes-popup-inner-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.moedes-popup-inner-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 资源项样式 - 极简设计 */
.resource-item {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 4px;
}

.resource-item:hover {
    background: #f3f4f6;
}

.resource-item .resource-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.resource-item .resource-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-item .spec-item {
    background: #e5e7eb;
    color: #4b5563;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.text-line {
    margin: 6px 0;
    color: #6b7280;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .moedes-popup-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .moedes-popup-title {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .moedes-popup-close {
        top: 10px;
        right: 14px;
    }
    
    .moedes-popup-inner-content {
        padding: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .moedes-popup-content {
        width: 98%;
        margin: 5px;
    }
    
    .moedes-popup-title {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .moedes-popup-close {
        top: 8px;
        right: 12px;
    }
    
    .moedes-popup-inner-content {
        padding: 14px;
        font-size: 12px;
    }
}

/* 深色主题 */
.dark-theme .moedes-popup-content,
body.dark .moedes-popup-content {
    background: #1f2937;
    border-color: #374151;
}

.dark-theme .moedes-popup-title,
body.dark .moedes-popup-title {
    background: #111827;
    color: #f9fafb;
    border-bottom-color: #374151;
}

.dark-theme .moedes-popup-close,
body.dark .moedes-popup-close {
    color: #9ca3af;
}

.dark-theme .moedes-popup-close:hover,
body.dark .moedes-popup-close:hover {
    background: #374151;
    color: #f3f4f6;
}

.dark-theme .moedes-popup-inner-content,
body.dark .moedes-popup-inner-content {
    color: #e5e7eb;
}

.dark-theme .resource-item,
body.dark .resource-item {
    background: #374151;
    border-color: #4b5563;
}

.dark-theme .resource-item:hover,
body.dark .resource-item:hover {
    background: #4b5563;
}

.dark-theme .resource-item .resource-name,
body.dark .resource-item .resource-name {
    color: #f9fafb;
}

.dark-theme .spec-item,
body.dark .spec-item {
    background: #4b5563;
    color: #d1d5db;
}

.dark-theme .text-line,
body.dark .text-line {
    color: #9ca3af;
}