/**
 * 前台统一按钮体系 - 胶囊描边（方案 B）
 *
 * 唯一来源：全站「查看 / 阅读 / 更多」类入口只使用 .btn-pill 及其修饰类，
 * 页面模板不再各自定义按钮样式。
 *
 * 用法：
 *   <a class="btn-pill" href="...">阅读全文 <i class="fas fa-arrow-right"></i></a>
 *   不可用：加 .is-disabled 或 aria-disabled="true"
 */

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    padding: 0 20px;
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.55);
    border-radius: 999px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.18s ease, border-color 0.18s ease,
                color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-pill i {
    font-size: 0.85em;
    line-height: 1;
}

/* 悬停：渐变填充、文字转白 */
.btn-pill:hover {
    background-image: var(--gaming-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.28);
}

/* 键盘焦点：可见焦点环，且不引起布局位移 */
.btn-pill:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
    border-color: #93c5fd;
    color: #ffffff;
}

/* 按下 */
.btn-pill:active {
    transform: translateY(1px);
    filter: brightness(0.94);
}

/* 不可用 */
.btn-pill:disabled,
.btn-pill.is-disabled,
.btn-pill[aria-disabled="true"] {
    opacity: 0.45;
    background: transparent;
    border-color: rgba(59, 130, 246, 0.55);
    color: #93c5fd;
    box-shadow: none;
    pointer-events: none;
    cursor: not-allowed;
}
