/* 网盘检测按钮容器 */
.erphp-pan-check-buttons {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* 检测按钮组样式 */
.check-button-group {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}

.pan-links-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

/* 按钮包装器样式 */
.check-button-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    flex-wrap: wrap;
}

/* 按钮容器样式 */
.pan-check-btn-container {
    flex: 0 0 auto;
    order: 1;
    display: flex;
    align-items: center;
}

/* 检测按钮样式 */
.erphp-pan-check-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.erphp-pan-check-btn:hover:not(.disabled) {
    background: #45a049;
}

.erphp-pan-check-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.erphp-pan-check-btn i {
    margin-right: 5px;
}

/* 检测信息区域样式 */
.check-info-wrapper {
    flex: 1;
    min-width: 0; /* 允许内容换行 */
    order: 2; /* 信息放在右边 */
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    display: flex !important; /* 确保始终显示 */
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.check-info-wrapper.success {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.check-info-wrapper.error {
    background: #ffebee;
    border-color: #ffcdd2;
}

/* 时间和状态信息样式 */
.check-time-info {
    font-size: 13px;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

.check-status-info {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

.check-status-info.success {
    color: #2e7d32;
}

.check-status-info.error {
    color: #c62828;
}

.next-check-time {
    color: #666;
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

/* 检测结果提示样式 */
.check-result-tip {
    display: none;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    order: 3; /* 结果提示放在最下面 */
}

.check-result-tip.checking {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.check-result-tip.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.check-result-tip.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .check-button-wrapper {
        gap: 8px;
    }
    
    .pan-check-btn-container {
        width: 100%;
        order: 2;
    }
    
    .erphp-pan-check-btn {
        width: 100%;
    }
    
    .check-info-wrapper {
        width: 100%;
        order: 1;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 检测结果样式 */
.erphp-pan-check-result {
    display: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.erphp-pan-check-result.success {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.erphp-pan-check-result.error {
    background: #ffebee;
    border-color: #ffcdd2;
}

.erphp-pan-check-result.success,
.erphp-pan-check-result.error {
    animation: fadeIn 0.3s ease-out;
}

/* 网盘目录样式 */
.erphp-pan-directory {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 目录头部样式 */
.directory-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.directory-title {
    color: #666;
    font-weight: normal;
}

.directory-header .pan-type {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 3px;
    color: #495057;
    font-size: 13px;
}

/* 检测按钮区域 */
.check-buttons-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* 未登录提示样式 */
.check-login-notice {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
}

/* 检测结果提示样式 */
.check-result-tip {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.check-result-tip.checking {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.check-result-tip.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.check-result-tip.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .directory-header {
        margin-bottom: 10px;
    }
    
    .check-buttons-area {
        gap: 8px;
    }
    
    .check-button-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .check-result-tip {
        margin-top: 8px;
        order: 3;
    }
    
    .erphp-pan-check-btn {
        width: 100%;
        order: 2;
    }
    
    .check-info-wrapper {
        width: 100%;
        order: 1;
    }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    /* 检测按钮组样式 */
    .check-button-group {
        background: #1a1a1a;
        border-color: #333;
    }

    .pan-links-title {
        color: #e0e0e0;
        border-bottom-color: #333;
    }

    /* 检测信息区域样式 */
    .check-info-wrapper {
        background: #2a2a2a;
        border-color: #333;
        color: #e0e0e0;
    }

    .check-info-wrapper.success {
        background: #1b3320;
        border-color: #2a4a30;
    }

    .check-info-wrapper.error {
        background: #3a1f1f;
        border-color: #4a2a2a;
    }

    /* 时间和状态信息样式 */
    .check-time-info {
        color: #aaa;
    }

    .check-status-info.success {
        color: #4caf50;
    }

    .check-status-info.error {
        color: #ff5252;
    }

    .next-check-time {
        color: #888;
    }

    /* 网盘目录样式 */
    .erphp-pan-directory {
        background: #1a1a1a;
        border-color: #333;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    /* 目录头部样式 */
    .directory-header .pan-type {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    .directory-title {
        color: #aaa;
    }

    /* 检测结果提示样式 */
    .check-result-tip.checking {
        background-color: #332d1a;
        color: #ffd54f;
        border-color: #4d3f1a;
    }

    .check-result-tip.success {
        background-color: #1b3320;
        color: #81c784;
        border-color: #2a4a30;
    }

    .check-result-tip.error {
        background-color: #3a1f1f;
        color: #ff8a80;
        border-color: #4a2a2a;
    }

    /* 未登录提示样式 */
    .check-login-notice {
        background: #2a2a2a;
        border-color: #333;
        color: #aaa;
    }
} 