/**
 * page-post.css - 文章页样式
 * 下载卡片、支付按钮、上下篇导航
 */

/* ==============================
   上下篇导航
   ============================== */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 48px;
}

.article-nav a {
    flex: 1;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.article-nav a:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* ==============================
   付费下载卡片
   ============================== */
.download-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.download-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

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

.price-row {
    margin-bottom: 8px;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 支付方式按钮 */
.payment-methods {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.pay-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.pay-alipay:hover {
    border-color: #1677ff;
    color: #1677ff;
    box-shadow: 0 0 15px rgba(22, 119, 255, 0.2);
}

.pay-wechat:hover {
    border-color: #07c160;
    color: #07c160;
    box-shadow: 0 0 15px rgba(7, 193, 96, 0.2);
}

.unlock-form {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.password-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.unlock-btn {
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

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

.unlock-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.download-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: white;
}
