.pdm-download-section {
    margin: 40px 0 20px 0;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.pdm-download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    border-radius: 12px 12px 0 0;
}

.pdm-download-header {
    margin-bottom: 20px;
    text-align: center;
}

.pdm-download-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #007cba;
    display: inline-block;
}

.pdm-password-form {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff9e6;
    border-radius: 8px;
    border-left: 4px solid #ffb900;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pdm-password-form p {
    margin: 0 0 12px 0;
    color: #856404;
    font-weight: 500;
}

.pdm-password-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pdm-password-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.pdm-password-field:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
    outline: none;
}

.pdm-verify-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.pdm-verify-btn:hover {
    background: linear-gradient(135deg, #005a87, #004a6e);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 92, 186, 0.3);
}

.pdm-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdm-password-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.pdm-password-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pdm-password-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pdm-download-links.pdm-locked .pdm-links-container {
    display: none;
}

.pdm-toggle-links {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007cba, #00a0d2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.pdm-toggle-links:hover {
    background: linear-gradient(135deg, #005a87, #007cba);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 124, 186, 0.3);
}

.pdm-links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* 通用样式 */
.pdm-normal-link, .pdm-magnet-link {
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.pdm-normal-link:hover, .pdm-magnet-link:hover {
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    color: #007cba;
    text-decoration: none;
}

.pdm-magnet-link:hover {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

/* ========== 默认样式 ========== */
.pdm-default-item {
    background: white;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.pdm-default-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pdm-default-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 无提取码：62px完整按钮 */
.pdm-default-item:not(.pdm-default-has-code) {
    height: 62px;
}

.pdm-default-item:not(.pdm-default-has-code) .pdm-default-link {
    height: 62px;
    padding: 0 15px;
}

/* 有提取码：36px链接 + 26px提取码 */
.pdm-default-item.pdm-default-has-code {
    height: 62px;
}

.pdm-default-item.pdm-default-has-code .pdm-default-link {
    height: 36px;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.pdm-default-icon {
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pdm-default-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdm-default-main {
    display: flex;
    align-items: center;
    flex: 1;
}

.pdm-default-lock {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.pdm-default-link:hover .pdm-default-lock {
    opacity: 1;
}

.pdm-default-code {
    height: 26px;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    color: #666;
}

.pdm-default-code-label {
    font-weight: 600;
    color: #495057;
    margin-right: 5px;
}

.pdm-default-code-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #28a745;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #28a745;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2);
}

/* ========== 悬停样式 ========== */
.pdm-hover-item {
    background: white;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 62px;
    position: relative;
}

.pdm-hover-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pdm-hover-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pdm-hover-link {
    height: 62px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.pdm-hover-link:hover {
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    color: #007cba;
    text-decoration: none;
}

.pdm-hover-icon {
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pdm-hover-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdm-hover-main {
    display: flex;
    align-items: center;
    flex: 1;
}

.pdm-hover-lock {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.pdm-hover-link:hover .pdm-hover-lock {
    opacity: 1;
}

/* 悬停时显示提取码 */
.pdm-hover-item.pdm-hover-has-code:hover {
    height: 92px;
}

.pdm-hover-code {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    height: 30px;
    z-index: 1;
}

.pdm-hover-item.pdm-hover-has-code:hover .pdm-hover-code {
    transform: translateY(0);
}

.pdm-hover-code-label {
    font-weight: 600;
}

.pdm-hover-code-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.pdm-hover-copy-hint {
    font-size: 11px;
    opacity: 0.9;
}

/* ========== 弹窗样式 ========== */
.pdm-modal-item {
    background: white;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 62px;
}

.pdm-modal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pdm-modal-item-content {
    padding: 0;
    height: 100%;
}

.pdm-modal-link {
    height: 62px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.pdm-modal-link:hover {
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    color: #007cba;
    text-decoration: none;
}

.pdm-modal-item-icon {
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pdm-modal-item-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdm-modal-item-main {
    display: flex;
    align-items: center;
    flex: 1;
}

.pdm-modal-item-lock {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.pdm-modal-link:hover .pdm-modal-item-lock {
    opacity: 1;
}

/* 弹窗样式下不显示提取码区域 */
.pdm-modal-item .pdm-default-code,
.pdm-modal-item .pdm-hover-code {
    display: none !important;
}

.pdm-footer-text {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.pdm-footer-text p {
    margin: 0;
}

.pdm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.pdm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.pdm-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.pdm-modal-header {
    background: linear-gradient(135deg, #007cba, #00a0d2);
    color: white;
    border-bottom: none;
    padding: 5px 30px;
    text-align: center;
}

.pdm-modal-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.pdm-modal-body {
    padding: 30px;
}

.pdm-modal-disk-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007cba;
}

.pdm-modal-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    border-radius: 6px;
}

.pdm-modal-disk-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.pdm-code-notice {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
}

.pdm-code-notice .pdm-lock-icon {
    margin-right: 8px;
    font-size: 16px;
}

.pdm-modal-code-container {
    margin-bottom: 15px;
}

.pdm-modal-code-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.pdm-code-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pdm-modal-code-value {
    flex: 1;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #28a745;
    text-align: center;
    letter-spacing: 2px;
    border: 1px solid #ddd;
    outline: none;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

.pdm-copy-code-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 80px;
}

.pdm-copy-code-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pdm-copy-status {
    text-align: center;
    min-height: 20px;
}

.pdm-copy-success {
    font-size: 13px;
    color: #28a745;
    font-weight: 500;
}

.pdm-modal-footer {
    padding: 10px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.pdm-go-download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdm-go-download-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pdm-modal-cancel {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdm-modal-cancel:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.pdm-go-download-btn .dashicons,
.pdm-modal-cancel .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* 平板和移动端适配 */
@media (max-width: 1024px) {
    .pdm-links-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 平板设备上悬停模式直接显示提取码 */
    .pdm-hover-item.pdm-hover-has-code {
        height: 92px;
    }
    
    .pdm-hover-code {
        transform: translateY(0);
        position: static;
        height: 30px;
    }
    
    /* 平板弹窗尺寸优化 */
    .pdm-modal-content {
        width: 70%;
        max-width: 500px;
        max-height: 50vh;
    }
    
    /* 平板弹窗内部内容适配 */
    .pdm-modal-header {
        padding: 20px 25px;
    }
    
    .pdm-modal-header h4 {
        font-size: 16px;
    }
    
    .pdm-modal-body {
        padding: 20px;
    }
    
    .pdm-modal-disk-info {
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .pdm-modal-icon {
        width: 28px;
        height: 28px;
        margin-right: 12px;
    }
    
    .pdm-modal-disk-name {
        font-size: 15px;
    }
    
    .pdm-code-notice {
        margin-bottom: 12px;
        padding: 10px;
        font-size: 13px;
    }
    
    .pdm-modal-code-container label {
        font-size: 13px;
    }
    
    .pdm-modal-code-value {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .pdm-copy-code-btn {
        padding: 10px 16px;
        min-width: 70px;
        font-size: 14px;
    }
    
    .pdm-modal-footer {
        padding: 20px 25px;
    }
    
    .pdm-go-download-btn,
    .pdm-modal-cancel {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .pdm-links-container {
        grid-template-columns: 1fr;
    }
    
    .pdm-password-input {
        flex-direction: column;
    }
    
    .pdm-download-section {
        margin: 30px 0 15px 0;
        padding: 20px;
    }
    
    /* 移动端弹窗适配 */
    .pdm-modal-content {
        width: 70%;
        max-width: none;
        max-height: 50vh;
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
    }
    
    .pdm-modal-body {
        padding: 18px;
    }
    
    .pdm-modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 18px;
    }
    
    .pdm-code-input-group {
        flex-direction: column;
    }
    
    .pdm-copy-code-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    /* 移动端弹窗内部内容适配 */
    .pdm-modal-header {
        padding: 18px 20px;
    }
    
    .pdm-modal-header h4 {
        font-size: 15px;
    }
    
    .pdm-modal-disk-info {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .pdm-modal-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }
    
    .pdm-modal-disk-name {
        font-size: 14px;
    }
    
    .pdm-code-notice {
        margin-bottom: 10px;
        padding: 8px;
        font-size: 12px;
    }
    
    .pdm-modal-code-container label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .pdm-modal-code-value {
        padding: 8px 10px;
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .pdm-copy-code-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .pdm-go-download-btn,
    .pdm-modal-cancel {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .pdm-copy-success {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pdm-disk-name {
        font-size: 13px;
    }
    
    .pdm-code-value {
        font-size: 11px;
    }
    
    .pdm-copy-hint {
        font-size: 11px;
    }
    
    /* 小屏幕移动端弹窗优化 */
    .pdm-modal-content {
        width: 85%;
        max-height: 60vh;
    }
    
    .pdm-modal-header {
        padding: 15px 18px;
    }
    
    .pdm-modal-header h4 {
        font-size: 14px;
    }
    
    .pdm-modal-body {
        padding: 15px;
    }
    
    .pdm-modal-disk-info {
        margin-bottom: 12px;
        padding: 8px;
    }
    
    .pdm-modal-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .pdm-modal-disk-name {
        font-size: 13px;
    }
    
    .pdm-code-notice {
        margin-bottom: 8px;
        padding: 6px;
        font-size: 11px;
    }
    
    .pdm-modal-code-container label {
        font-size: 11px;
    }
    
    .pdm-modal-code-value {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .pdm-copy-code-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pdm-modal-footer {
        padding: 15px;
    }
    
    .pdm-go-download-btn,
    .pdm-modal-cancel {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pdm-copy-success {
        font-size: 11px;
    }
}

/* 超小屏幕设备适配 */
@media (max-width: 360px) {
    .pdm-modal-content {
        width: 90%;
        max-height: 65vh;
    }
    
    .pdm-modal-header {
        padding: 12px 15px;
    }
    
    .pdm-modal-body {
        padding: 12px;
    }
    
    .pdm-modal-footer {
        padding: 12px;
    }
    
    .pdm-modal-disk-info {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .pdm-modal-icon {
        margin-right: 0;
    }
}