/* 123ONE文章下载插件 - 前端样式 */
.one23-dl-box {
    margin: 2em 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.one23-dl-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.one23-dl-title svg {
    flex-shrink: 0;
}

.one23-dl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.one23-dl-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.one23-dl-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dl-color, #666);
    border-radius: 2px;
    transition: width .2s ease;
}

.one23-dl-button:hover {
    border-color: var(--dl-color, #666);
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

.one23-dl-button:hover::before {
    width: 100%;
    opacity: .04;
}

.one23-dl-button svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.one23-dl-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    position: relative;
    z-index: 1;
}

.one23-dl-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.one23-dl-badge-code {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.one23-dl-badge-pwd {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.one23-dl-badge:hover {
    opacity: .8;
}

.one23-dl-arrow {
    color: #999;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform .2s ease;
}

.one23-dl-button:hover .one23-dl-arrow {
    transform: translateY(2px);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .one23-dl-box {
        background: #1e1e1e;
        border-color: #333;
    }
    .one23-dl-title {
        color: #e0e0e0;
        border-bottom-color: #333;
    }
    .one23-dl-button {
        background: #252525;
        border-color: #333;
        color: #e0e0e0;
    }
    .one23-dl-button:hover {
        background: #2a2a2a;
        border-color: #555;
    }
    .one23-dl-label {
        color: #e0e0e0;
    }
    .one23-dl-badge-code {
        background: #1b3d1b;
        color: #81c784;
        border-color: #2e7d32;
    }
    .one23-dl-badge-pwd {
        background: #3d2b1b;
        color: #ffb74d;
        border-color: #e65100;
    }
}

/* 移动端响应 */
@media (max-width: 600px) {
    .one23-dl-box {
        padding: 16px;
        margin: 1.5em -12px;
        border-radius: 0;
    }
    .one23-dl-button {
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    .one23-dl-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
}
