/**
 * component-article.css - 文章内容组件（Joe 原版样式）
 * 包含：面包屑、文章头部、文章内容、标签、版权、下载卡片、上下篇、点赞等
 */

/* ==============================
   面包屑导航
   ============================== */
.joe_bread {
    padding-top: 15px;
}

.joe_bread__bread {
    display: flex;
    align-items: center;
}

.joe_bread__bread .line {
    color: var(--text-muted, #999);
    padding: 0 8px;
}

.joe_bread__bread .item {
    color: var(--text-muted, #999);
    white-space: nowrap;
}

.joe_bread__bread .item .link {
    color: var(--text-secondary, #666);
    transition: color 0.35s;
    text-decoration: none;
}

.joe_bread__bread .item .link:hover {
    color: var(--accent-primary, #409eff);
}

.joe_bread__bread .item .icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    fill: var(--text-secondary, #666);
    margin-right: 2px;
}

.joe_bread__bread .item:first-child {
    display: flex;
    align-items: center;
}

/* ==============================
   文章容器
   ============================== */
.post-article {
    max-width: 100%;
}

.joe_detail {
    background: var(--card-bg, #fff);
    border-radius: var(--radius-wrap, 8px);
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 15px;
}

/* ==============================
   文章分类标签
   ============================== */
.joe_detail__category {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 5px;
}

.joe_detail__category .item {
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    transition: opacity 0.35s, transform 0.35s;
    text-decoration: none;
}

.joe_detail__category .item:hover {
    opacity: 0.85;
    transform: translate3d(0, -3px, 0);
    color: #fff;
}

.joe_detail__category .item:last-child {
    margin-right: 0;
}

.joe_detail__category .item:nth-child(1) { background: #0396ff; }
.joe_detail__category .item:nth-child(2) { background: #ea5455; }
.joe_detail__category .item:nth-child(3) { background: #7367f0; }
.joe_detail__category .item:nth-child(4) { background: #28c76f; }
.joe_detail__category .item:nth-child(5) { background: #9f44d3; }

.joe_detail__category .edit {
    color: var(--text-muted, #999);
    margin-left: auto;
    text-decoration: none;
    font-size: 12px;
}

.joe_detail__category .edit:hover {
    color: var(--accent-primary, #409eff);
}

/* ==============================
   文章标题
   ============================== */
.joe_detail__title {
    font-size: 24px;
    color: var(--text-primary, #333);
    text-shadow: var(--text-shadow, none);
    text-align: center;
    margin-bottom: 15px;
    word-break: break-word;
}

/* ==============================
   作者信息栏
   ============================== */
.joe_detail__count {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
}

.joe_detail__count::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 80px;
    height: 3px;
    border-radius: 1.5px;
    background: var(--accent-primary, #409eff);
}

.joe_detail__count-information {
    display: flex;
    align-items: center;
}

.joe_detail__count-information .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid var(--border-color, #f0f0f0);
    padding: 3px;
    object-fit: cover;
}

.joe_detail__count-information .meta {
    display: flex;
    flex-direction: column;
    height: 35px;
    justify-content: space-between;
    font-size: 12px;
}

.joe_detail__count-information .meta .author .link {
    font-weight: 500;
    color: var(--accent-primary, #409eff);
    text-decoration: none;
}

.joe_detail__count-information .meta .author .link:hover {
    text-decoration: underline;
}

.joe_detail__count-information .meta .item {
    display: flex;
    align-items: center;
    color: var(--text-muted, #999);
    line-height: 16px;
}

.joe_detail__count-information .meta .item .line {
    color: var(--text-muted, #999);
    margin: 0 7px;
    vertical-align: middle;
}

.joe_detail__count-created {
    font-size: 32px;
    line-height: 42px;
    color: var(--text-secondary, #666);
    -webkit-user-select: none;
    user-select: none;
    text-shadow: var(--text-shadow, none);
    font-family: consolas;
}

/* ==============================
   文章正文
   ============================== */
.joe_detail__article {
    padding-top: 15px;
    font-size: 15px;
    word-break: break-word;
    color: var(--text-secondary, #666);
}

.joe_detail__article h1,
.joe_detail__article h2,
.joe_detail__article h3,
.joe_detail__article h4,
.joe_detail__article h5,
.joe_detail__article h6 {
    color: var(--text-primary, #333);
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 18px;
    position: relative;
}

.joe_detail__article h1 {
    padding: 0 15px 0 20px;
}

.joe_detail__article h1::before {
    content: '\00B6';
    color: var(--accent-primary, #409eff);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 22px;
}

.joe_detail__article h2 {
    padding: 0 15px;
}

.joe_detail__article h2::before {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--accent-primary, #409eff);
}

.joe_detail__article h3 {
    padding: 0 15px;
}

.joe_detail__article h3::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--accent-primary, #409eff);
    border-radius: 0 4px 4px 0;
}

.joe_detail__article h4::before {
    content: '\300C';
    color: var(--accent-primary, #409eff);
    font-weight: 600;
    margin-right: 5px;
}

.joe_detail__article h4::after {
    content: '\300D';
    color: var(--accent-primary, #409eff);
    font-weight: 600;
    margin-left: 5px;
}

.joe_detail__article h5 {
    padding: 0 15px 0 28px;
}

.joe_detail__article h6 {
    padding: 0 15px 0 28px;
}

.joe_detail__article hr {
    border: none;
    height: 1px;
    background-color: var(--border-color, #f0f0f0);
    margin-bottom: 18px;
}

.joe_detail__article p {
    line-height: 26px;
    margin-bottom: 18px;
}

.joe_detail__article blockquote {
    line-height: 26px;
    margin-bottom: 18px;
    background: #ecf8ff;
    border-left: 5px solid #50bfff;
    color: #50bfff;
    padding: 8px 15px;
    border-radius: 0 var(--radius-md, 4px) var(--radius-md, 4px) 0;
}

.joe_detail__article blockquote p {
    margin: 0;
}

.joe_detail__article a:not([class]) {
    display: inline-block;
    line-height: 26px;
    color: var(--accent-primary, #409eff);
    position: relative;
    text-decoration: none;
}

.joe_detail__article a:not([class]):hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.joe_detail__article a:not([class])::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -1px;
    left: 0;
    background: var(--accent-primary, #409eff);
    transform: scaleX(0.25);
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
}

.joe_detail__article code:not([class]) {
    display: inline-block;
    border-radius: var(--radius-md, 4px);
    font-size: 12px;
    background: #ecf5ff;
    color: #409eff;
    padding: 0 8px;
    vertical-align: top;
    word-break: break-word;
}

.joe_detail__article pre[class*='language-'] {
    position: relative;
    margin: 0 0 18px;
    padding: 30px 0 0;
    font-size: 14px;
    border-radius: var(--radius-md, 4px);
    overflow: hidden;
}

.joe_detail__article pre[class*='language-'] code[class*='language-'] {
    display: block;
    overflow: auto;
    padding: 0 15px 12px;
}

.joe_detail__article pre[class*='language-']::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fc625d;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    z-index: 1;
}

.joe_detail__article pre[class*='language-'] .copy {
    position: absolute;
    top: 9px;
    right: 15px;
    z-index: 5;
    color: #909399;
    transition: color 0.35s;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.joe_detail__article pre[class*='language-'] .copy:hover {
    color: #c0c4cc;
}

.joe_detail__article img:not([class]) {
    display: block;
    max-width: 100%;
    border-radius: var(--radius-md, 4px);
    transition: transform 0.35s, box-shadow 0.35s;
    cursor: zoom-in;
    margin: 0 auto;
}

.joe_detail__article img:not([class]):hover {
    transform: translateY(-5px);
    box-shadow: 0 34px 20px -24px rgba(136, 161, 206, 0.3);
}

.joe_detail__article .owo_image {
    max-height: 26px;
    vertical-align: top;
}

.joe_detail__article ol,
.joe_detail__article ul {
    margin-bottom: 18px;
    padding-left: 36px;
}

.joe_detail__article ol li,
.joe_detail__article ul li {
    line-height: 26px;
}

.joe_detail__article ol li { list-style: decimal; }
.joe_detail__article ul li { list-style: disc; }

.joe_detail__article table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    color: var(--text-muted, #999);
    margin-bottom: 18px;
    font-size: 13px;
    border-top: 1px solid var(--border-color, #f0f0f0);
    border-left: 1px solid var(--border-color, #f0f0f0);
}

.joe_detail__article table td,
.joe_detail__article table th {
    padding: 8px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
    border-right: 1px solid var(--border-color, #f0f0f0);
}

.joe_detail__article table thead th {
    font-weight: 500;
    background: var(--border-color, #f0f0f0);
}

.joe_detail__article table tbody tr {
    transition: background 0.35s;
}

.joe_detail__article table tbody tr:hover {
    background: var(--bg-secondary, #f5f6f7);
}

/* ==============================
   视频预览区域
   ============================== */
.joe_detail__article-video {
    margin-bottom: 18px;
}

.joe_detail__article-video .play,
.joe_detail__article-video .episodes {
    position: relative;
    background: var(--bg-secondary, #f5f6f7);
    padding: 60px 15px 15px;
    border-radius: var(--radius-md, 4px);
}

.joe_detail__article-video .play .title,
.joe_detail__article-video .episodes .title {
    position: absolute;
    top: 15px;
    left: -10px;
    background: var(--accent-primary, #409eff);
    color: #fff;
    font-weight: 500;
    box-shadow: 2px 5px 10px rgba(49, 58, 70, 0.15);
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 2px;
    -webkit-user-select: none;
    user-select: none;
}

.joe_detail__article-video .play .title::after,
.joe_detail__article-video .episodes .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    border-style: solid;
    border-width: 10px;
    border-color: var(--accent-primary, #409eff) transparent transparent;
    transform: rotate(90deg);
}

.joe_detail__article-video .play .box,
.joe_detail__article-video .episodes .box {
    border-top: 1px solid var(--border-color, #f0f0f0);
    padding-top: 15px;
}

.joe_detail__article-video .play {
    margin-bottom: 15px;
}

.joe_detail__article-video .play .box iframe {
    background: #000;
    width: 100%;
    height: 520px;
    border: none;
}

.joe_detail__article-video .episodes .box {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.joe_detail__article-video .episodes .box .item {
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    background: var(--card-bg, #fff);
    color: var(--text-secondary, #666);
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.35s, box-shadow 0.35s, background 0.35s, color 0.35s;
    padding: 0 10px;
}

.joe_detail__article-video .episodes .box .item.active {
    transform: translateY(-2px);
    color: #fff;
    background: var(--accent-primary, #409eff);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.joe_detail__article-video .episodes .box .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

/* ==============================
   密码保护
   ============================== */
.joe_detail__article-protected {
    display: flex;
    justify-content: center;
    background: repeating-linear-gradient(145deg, var(--border-color, #f0f0f0), var(--border-color, #f0f0f0) 15px, var(--card-bg, #fff) 0, var(--card-bg, #fff) 30px);
    padding: 20px 0;
    margin-bottom: 18px;
}

.joe_detail__article-protected .contain {
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg, #fff);
}

.joe_detail__article-protected .contain .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
}

.joe_detail__article-protected .contain .password {
    width: 250px;
    height: 40px;
    border: none;
    color: var(--text-secondary, #666);
    padding-left: 50px;
    background: var(--card-bg, #fff);
}

.joe_detail__article-protected .contain .submit {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-primary, #333);
    border: none;
    background: none;
    cursor: pointer;
}

/* ==============================
   过期警告
   ============================== */
.joe_detail__overdue {
    padding-top: 15px;
}

.joe_detail__overdue-wrapper {
    background: #fffcef;
    border-radius: var(--radius-md, 4px);
    padding: 15px;
    color: #db7c22;
    border: 1px solid #ffbb76;
    -webkit-animation: overdue 1.5s ease-in-out;
    animation: overdue 1.5s ease-in-out;
}

.joe_detail__overdue-wrapper .title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
}

.joe_detail__overdue-wrapper .title .icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.joe_detail__overdue-wrapper .content {
    padding-left: 28px;
}

.joe_detail__overdue-wrapper:hover {
    clip-path: circle(75%);
}

@keyframes overdue {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==============================
   点赞
   ============================== */
.joe_detail__agree {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.joe_detail__agree .agree {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted, #999);
    -webkit-user-select: none;
    user-select: none;
}

.joe_detail__agree .agree .icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f56c6c;
    cursor: pointer;
    margin-bottom: 8px;
}

.joe_detail__agree .agree .icon.active {
    -webkit-animation: box_shadow 1s;
    animation: box_shadow 1s;
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
}

.joe_detail__agree .agree .icon svg {
    position: absolute;
    width: 28px;
    height: 28px;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.85s, opacity 0.85s;
}

.joe_detail__agree .agree .icon svg.active {
    transform: scale(1);
    opacity: 1;
}

@keyframes box_shadow {
    0% { box-shadow: 0 0 0 0 rgba(245, 108, 108, 0.5); }
    100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

/* ==============================
   操作栏（标签+分享）
   ============================== */
.joe_detail__operate {
    margin-bottom: 15px;
    color: var(--text-secondary, #666);
    display: flex;
    align-items: center;
}

.joe_detail__operate-tags {
    flex-shrink: 0;
    flex: 1;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.joe_detail__operate-tags::-webkit-scrollbar {
    display: none;
}

.joe_detail__operate-tags a {
    flex-shrink: 0;
    position: relative;
    margin-right: 10px;
    font-size: 12px;
    background-color: var(--bg-secondary, #f5f6f7);
    color: var(--text-muted, #999);
    border: 1px solid var(--bg-secondary, #f5f6f7);
    padding-right: 8px;
    padding-left: 29px;
    height: 26px;
    line-height: 26px;
    border-radius: 13px;
    max-width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border 0.25s, color 0.25s;
    text-decoration: none;
}

.joe_detail__operate-tags a:hover {
    color: var(--text-secondary, #666);
    border: 1px solid var(--border-color, #e8e8e8);
}

.joe_detail__operate-tags a:last-child {
    margin-right: 0;
}

.joe_detail__operate-tags a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--card-bg, #fff);
    border-radius: 50%;
}

.joe_detail__operate-tags a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M682.667 356.848H325.818a38.788 38.788 0 0 1-38.788-38.787 38.788 38.788 0 0 1 38.788-38.788h356.849a38.788 38.788 0 0 1 38.788 38.788 38.788 38.788 0 0 1-38.788 38.787z' fill='%2354b5db'/%3E%3Cpath d='M907.636 1024h-15.515L512 806.788 131.879 1016.242H93.09a62.06 62.06 0 0 1-15.515-31.03V116.364A116.364 116.364 0 0 1 193.939 0h636.122a116.364 116.364 0 0 1 116.363 116.364v868.848a62.06 62.06 0 0 1-15.515 31.03zM512 721.455h23.273l333.575 186.182V116.364a38.788 38.788 0 0 0-38.787-38.788H193.939a38.788 38.788 0 0 0-38.787 38.788v799.03l341.333-186.182z' fill='%2354b5db'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100%;
}

/* ==============================
   版权信息
   ============================== */
.joe_detail__copyright {
    padding-top: 15px;
    border-top: 1px solid var(--border-color, #f0f0f0);
}

.joe_detail__copyright .content {
    background: var(--bg-secondary, #f5f6f7);
    padding: 15px;
    border-radius: var(--radius-md, 4px);
}

.joe_detail__copyright .content .item {
    color: var(--text-muted, #999);
    margin-bottom: 5px;
    word-break: break-word;
    line-height: 22px;
}

.joe_detail__copyright .content .item:last-child {
    margin-bottom: 0;
}

.joe_detail__copyright .content .item .icon {
    width: 18px;
    height: 18px;
    margin-right: 3px;
    vertical-align: -4px;
}

.joe_detail__copyright .content .item .link {
    color: var(--text-muted, #999);
    text-decoration: none;
}

.joe_detail__copyright .content .item .link:hover {
    color: var(--accent-primary, #409eff);
}

/* ==============================
   相关文章
   ============================== */
.joe_detail__related {
    padding-top: 15px;
}

.joe_detail__related-title {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary, #333);
    padding-left: 15px;
    margin-bottom: 15px;
}

.joe_detail__related-title::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--accent-primary, #409eff);
}

.joe_detail__related-content {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
}

.joe_detail__related-content .item {
    overflow: hidden;
    border-radius: var(--radius-md, 4px);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
}

.joe_detail__related-content .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 34px 20px -24px rgba(136, 161, 206, 0.3);
}

.joe_detail__related-content .item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.joe_detail__related-content .item h6 {
    height: 32px;
    line-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--bg-secondary, #f5f6f7);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted, #999);
    padding: 0 12px;
    margin: 0;
    font-weight: 400;
}

/* ==============================
   上下篇导航 (Joe 原版)
   ============================== */
.joe_post__pagination {
    display: flex;
    justify-content: space-between;
}

.joe_post__pagination-item {
    margin-bottom: 15px;
}

.joe_post__pagination-item a {
    display: block;
    height: 32px;
    line-height: 32px;
    padding: 0 15px;
    color: #fff;
    border-radius: 3px;
    background: var(--accent-primary, #409eff);
    font-size: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.joe_post__pagination-item a:hover {
    -webkit-animation: pulse 1s;
    animation: pulse 1s;
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
}

.joe_post__pagination-item.next {
    margin-left: auto;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-primary, #409eff); }
}

/* ==============================
   百度收录标记
   ============================== */
.baidu-record {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full, 999px);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.baidu-record.recorded {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.baidu-record.not-recorded {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ==============================
   下载卡片（Hydrogen 特有）
   ============================== */
.download-card {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-secondary, #f5f6f7);
    border: 1px solid var(--border-color, #f0f0f0);
    border-radius: var(--radius-lg, 8px);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.download-header svg {
    color: var(--accent-primary, #409eff);
}

.download-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.download-desc {
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.download-locked {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary, #409eff);
}

.payment-methods {
    display: flex;
    gap: 12px;
}

.pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md, 4px);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    color: #fff;
}

.pay-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pay-alipay {
    background: linear-gradient(135deg, #1677ff, #0ea5e9);
}

.pay-wechat {
    background: linear-gradient(135deg, #07c160, #22c55e);
}

.unlock-form {
    display: flex;
    gap: 8px;
}

.password-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color, #f0f0f0);
    border-radius: var(--radius-md, 4px);
    background: var(--card-bg, #fff);
    color: var(--text-primary, #333);
    font-size: 0.9rem;
}

.unlock-btn {
    padding: 10px 20px;
    background: var(--accent-primary, #409eff);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 4px);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.unlock-btn:hover { opacity: 0.9; }

.unlock-hint {
    font-size: 0.8rem;
    color: var(--text-muted, #999);
    margin: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md, 4px);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn-unlocked {
    background: var(--accent-primary, #409eff);
    color: #fff;
}

/* ==============================
   Joe 短代码样式占位
   ============================== */
.article-breadcrumb {
    /* 由 joe_bread 替代 */
}

.article-header {
    /* 由 joe_detail__category/title/count 替代 */
}

.article-meta-bar {
    /* 由 joe_detail__count 替代 */
}

.article-agree {
    /* 由 joe_detail__agree 替代 */
}

.article-tags {
    /* 由 joe_detail__operate 替代 */
}

.article-copyright {
    /* 由 joe_detail__copyright 替代 */
}

.article-nav {
    /* 由 joe_post__pagination 替代 */
}

.related-posts {
    /* 由 joe_detail__related 替代 */
}

/* ==============================
   Joe 短代码组件（保留）
   ============================== */

/* 彩色按钮 */
.article-abtn {
    display: inline-block;
    color: #fff;
    height: 35px;
    line-height: 35px;
    padding: 0 15px;
    border-radius: var(--radius-sm, 3px);
    margin: 0 8px 12px 0;
    text-decoration: none;
    transition: transform 0.35s, opacity 0.35s;
}

.article-abtn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: #fff;
}

.article-abtn-info { background: #3498db; }
.article-abtn-success { background: #27ae60; }
.article-abtn-warning { background: #f39c12; }
.article-abtn-error { background: #e74c3c; }
.article-abtn-secondary { background: #34495e; }

/* 消息提示 */
.article-message {
    display: block;
    position: relative;
    border-left-width: 4px;
    border-left-style: solid;
    padding: 8px 15px;
    border-radius: 0 var(--radius-md, 4px) var(--radius-md, 4px) 0;
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-message-info {
    border-left-color: #1d72f3;
    background: rgba(29, 114, 243, 0.1);
    color: #1d72f3;
}

.article-message-success {
    border-left-color: #2bde3f;
    background: rgba(43, 222, 63, 0.1);
    color: #2bde3f;
}

.article-message-warning {
    border-left-color: #ffc007;
    background: rgba(255, 192, 7, 0.1);
    color: #c99a00;
}

.article-message-error {
    border-left-color: #f56c6c;
    background: rgba(245, 108, 108, 0.1);
    color: #f56c6c;
}

/* 高亮注释 */
.article-anote {
    position: relative;
    display: inline-block;
    color: #fff;
    height: 35px;
    line-height: 35px;
    border-radius: var(--radius-sm, 3px);
    margin: 0 4px;
    transition: transform 0.35s;
}

.article-anote:hover {
    transform: translateY(-3px);
    color: #fff;
}

.article-anote__content {
    display: inline-block;
    vertical-align: top;
    padding: 0 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-anote-info { background: #3498db; }
.article-anote-success { background: #27ae60; }
.article-anote-warning { background: #f39c12; }
.article-anote-error { background: #e74c3c; }
.article-anote-secondary { background: #34495e; }

/* 提示框 */
.article-alert {
    padding: 12px;
    border-radius: var(--radius-md, 4px);
    margin-bottom: 18px;
    line-height: 1.6;
}

.article-alert-info {
    border: 1px solid #abdcff;
    color: #1d72f3;
    background: rgba(29, 114, 243, 0.04);
}

.article-alert-success {
    border: 1px solid #8ce6b0;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.04);
}

.article-alert-warning {
    border: 1px solid #ffd77a;
    color: #c99a00;
    background: rgba(243, 156, 18, 0.04);
}

.article-alert-error {
    border: 1px solid #ffb08f;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.04);
}

/* 虚线分割 */
.article-dotted {
    border: none;
    height: 2px;
    background: repeating-linear-gradient(
        145deg,
        var(--border-color, #f0f0f0),
        var(--border-color, #f0f0f0) 15px,
        transparent 0,
        transparent 25px
    );
    margin: 18px 0;
}

/* ==============================
   灯箱 Lightbox
   ============================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
    pointer-events: none;
}

/* ==============================
   阅读进度条
   ============================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    width: 0%;
    z-index: 999;
    transition: width 0.1s;
}

/* ==============================
   深色模式
   ============================== */
.dark .joe_detail {
    background: var(--card-bg, #1e1e1e);
}

.dark .joe_detail__overdue-wrapper {
    background: #2a2510;
    border-color: #5a4010;
    color: #f0c060;
}

.dark .joe_detail__article blockquote {
    background: #1a2a35;
    border-left-color: #3a8abf;
    color: #5ab0e8;
}

.dark .joe_detail__article code:not([class]) {
    background: #1a2a35;
    color: #6db8ff;
}

.dark .joe_detail__article table thead th {
    background: #2a2a2a;
}

.dark .joe_detail__article table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dark .joe_detail__copyright .content {
    background: rgba(255, 255, 255, 0.06);
}

.dark .joe_detail__operate-tags a {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.06);
}

.dark .joe_detail__operate-tags a:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .joe_detail__operate-tags a::before {
    background: #1e1e1e;
}

.dark .joe_detail__article-protected {
    background: repeating-linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 15px, var(--card-bg, #1e1e1e) 0, var(--card-bg, #1e1e1e) 30px);
}

.dark .joe_detail__article-protected .contain {
    background: #1e1e1e;
}

.dark .joe_detail__article-video .play,
.dark .joe_detail__article-video .episodes {
    background: rgba(255, 255, 255, 0.06);
}

.dark .joe_detail__article-video .play .box iframe {
    background: #000;
}

.dark .joe_detail__article-video .episodes .box .item {
    background: #1e1e1e;
}

.dark .joe_detail__related-content .item h6 {
    background: rgba(255, 255, 255, 0.06);
}

.dark .password-input {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #e0e0e0);
}

.dark .download-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .baidu-record.recorded {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.dark .baidu-record.not-recorded {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.dark .joe_detail__article a:not([class]) {
    color: #6db8ff;
}

/* ==============================
   响应式
   ============================== */
@media (max-width: 900px) {
    .joe_detail__related-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .joe_detail__article-video .episodes .box {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .joe_detail {
        padding: 12px;
        border-radius: 0;
        box-shadow: none;
    }

    .joe_detail__title {
        font-size: 20px;
    }

    .joe_detail__count {
        flex-direction: column;
        gap: 12px;
    }

    .joe_detail__count-created {
        font-size: 24px;
    }

    .joe_detail__related-content {
        grid-template-columns: 1fr;
    }

    .joe_detail__article-video .episodes .box {
        grid-template-columns: repeat(2, 1fr);
    }

    .joe_detail__article-video .play .box iframe {
        height: 220px;
    }

    .payment-methods {
        flex-direction: column;
    }

    .unlock-form {
        flex-direction: column;
    }
}
