/*
 * RiPro-V5 子主题自定义样式
 * 包含：购买区域美化、动画效果、实物商品样式
 */

/* ============================================
   一、购买区域美化 - child-shop-wrapper
   ============================================ */

.child-shop-wrapper {
    padding: 0;
    animation: childFadeInUp 0.6s ease-out;
}

/* 商城风格主卡片 */
.child-shop-card {
    background: var(--bs-body-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
    animation: childFadeInUp 0.6s ease-out;
}

[data-bs-theme="dark"] .child-shop-card {
    background: var(--bs-body-bg, #212529);
}

/* 标题区域 */
.child-shop-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.child-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    color: var(--bs-heading-color, #212529);
}

.child-goods-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.child-goods-badge--virtual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.child-goods-badge--physical {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

/* 主体内容 */
.child-shop-body {
    padding: 1.5rem;
}

/* 商品详情分隔区增强 */
.child-product-detail-divider {
    padding: 1.5rem 1.5rem 0.5rem;
}

.child-detail-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-heading-color, #212529);
    margin: 0;
}

.child-detail-title i {
    color: #667eea;
}

/* 商品图片 */
.child-shop-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.child-shop-image:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.child-shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.child-shop-image:hover img {
    transform: scale(1.05);
}

.child-img-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.child-shop-image:hover .child-img-glow {
    opacity: 1;
}

/* 库存标签 */
.child-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.child-stock-badge--in {
    background: rgba(25, 135, 84, 0.9);
    color: #fff;
}

.child-stock-badge--out {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

/* 元信息网格 - 隐藏 */
.child-meta-grid {
    display: none !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.child-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.child-meta-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: #667eea;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.child-meta-label {
    display: block;
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #6c757d);
    line-height: 1;
    margin-bottom: 2px;
}

.child-meta-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-body-color, #212529);
    line-height: 1.2;
}

/* 价格区域 */
.child-price-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f6 50%, #f0f5ff 100%);
    border-radius: 12px;
    border: 1px solid #ffe0e6;
}

[data-bs-theme="dark"] .child-price-section {
    background: linear-gradient(135deg, #2d1b1b 0%, #2d1b2d 50%, #1b2d3d 100%);
    border-color: #4a2a2a;
}

.child-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.child-price-label {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 500;
}

.child-price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #dc3545;
    line-height: 1;
}

.child-price-amount small {
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

.child-price-shipping-note {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* VIP 价格列表 */
.child-price-vip-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.child-price-vip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .child-price-vip-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.child-price-vip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.child-vip-name {
    font-weight: 600;
    color: var(--bs-body-color, #212529);
}

.child-vip-price {
    color: var(--bs-secondary-color, #6c757d);
}

.child-price-free .child-vip-price {
    color: #198754;
    font-weight: 600;
}

.child-price-disabled .child-vip-price {
    color: #adb5bd;
    text-decoration: line-through;
}

.child-discount-tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.25rem;
    vertical-align: super;
}

/* ============================================
   套餐/规格选择卡片
   ============================================ */

.child-plan-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.child-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    min-width: 120px;
    background: var(--bs-body-bg, #fff);
    border: 2px solid var(--bs-border-color, #dee2e6);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.child-plan-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.child-plan-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.child-plan-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-bs-theme="dark"] .child-plan-card {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057);
}

[data-bs-theme="dark"] .child-plan-card:hover {
    border-color: #667eea;
}

[data-bs-theme="dark"] .child-plan-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.child-plan-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-body-color, #212529);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.child-plan-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
    line-height: 1.2;
}

.child-plan-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bs-secondary-color, #6c757d);
}

.child-plan-desc {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 0.2rem;
    line-height: 1.2;
}

/* 暂停销售的套餐卡片 */
.child-plan-paused {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #f5f5f5 !important;
    border-color: #ddd !important;
}

.child-plan-paused:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #ddd !important;
}

.child-plan-paused-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

/* 移动端套餐卡片适配 */
@media (max-width: 575.98px) {
    .child-plan-grid {
        gap: 0.5rem;
    }
    .child-plan-card {
        min-width: 100px;
        padding: 0.65rem 0.85rem;
        flex: 1 1 calc(50% - 0.5rem);
    }
    .child-plan-name {
        font-size: 0.82rem;
    }
    .child-plan-price {
        font-size: 0.95rem;
    }
}

/* 保障信息栏 */
.child-guarantee-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.04));
    border: 1px solid var(--bs-border-color, #eef0f5);
    border-radius: 10px;
}

.child-guarantee-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

.child-guarantee-bar span i {
    color: #667eea;
    font-size: 0.85rem;
}

[data-bs-theme="dark"] .child-guarantee-bar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .child-guarantee-bar span i {
    color: #8b9cf7;
}

/* 购买按钮容器 */
.child-buy-btns {
    flex-wrap: wrap;
}

/* 操作按钮区域 */
.child-action-section {
    margin-top: 1.5rem;
}

/* 购买按钮 */
.child-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.child-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.child-buy-btn:hover::before {
    left: 100%;
}

.child-buy-btn--purchase {
    background: linear-gradient(135deg, #f5576c 0%, #ff6b6b 50%, #f093fb 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.child-buy-btn--purchase:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
    color: #fff;
}

.child-buy-btn--physical {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.child-buy-btn--physical:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.child-buy-btn--virtual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.child-buy-btn--virtual:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.child-virtual-order-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 8px;
}

.child-buy-btn--login {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.child-buy-btn--login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.5);
    color: #fff;
}

/* 已购买下载区域 */
.child-downloaded-section {
    animation: childFadeIn 0.4s ease-out;
}

.child-downloaded-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .child-downloaded-header {
    background: linear-gradient(135deg, #1a3d2a, #1a4a2a);
    color: #75d9a0;
}

/* 下载卡片列表 */
.child-download-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.child-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.child-download-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.child-dl-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.child-dl-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 8px;
    color: #667eea;
}

.child-dl-pwd {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}

.child-dl-pwd code {
    padding: 0.1rem 0.4rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 4px;
    font-size: 0.8rem;
}

.child-dl-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-copy-pwd-btn {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--bs-body-color, #212529);
}

.child-copy-pwd-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.child-copy-pwd-btn.copied {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

.child-dl-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #198754, #20c997);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.child-dl-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
    color: #fff;
}

/* 额外按钮 */
.child-extra-btns {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.child-extra-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--bs-body-color, #212529);
    transition: all 0.25s ease;
}

.child-extra-btn:hover {
    background: #343a40;
    color: #fff;
    border-color: #343a40;
}

/* 需要登录提示 */
.child-login-required {
    text-align: center;
    padding: 2rem 1rem;
}

.child-login-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 0.75rem;
}

.child-login-required p {
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 1.25rem;
}

/* 未购买提示 */
.child-buy-section {
    text-align: center;
    padding: 1.5rem 1rem;
}

.child-buy-lock-icon {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 0.5rem;
    animation: childPulse 2s infinite;
}

.child-buy-hint {
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 1.25rem;
}

/* 已购买/售罄提示 */
.child-purchased-notice,
.child-out-of-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
}

.child-purchased-notice {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.child-out-of-stock {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

[data-bs-theme="dark"] .child-purchased-notice {
    background: linear-gradient(135deg, #1a3d2a, #1a4a2a);
    color: #75d9a0;
}

[data-bs-theme="dark"] .child-out-of-stock {
    background: linear-gradient(135deg, #3d1a1a, #4a1a2a);
    color: #f5a0a8;
}


/* ============================================
   二、动画效果
   ============================================ */

/* 淡入上移 */
@-webkit-keyframes childFadeInUp {
    from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes childFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入 */
@-webkit-keyframes childFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes childFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 脉冲 */
@-webkit-keyframes childPulse {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.1); transform: scale(1.1); }
}
@keyframes childPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 缩放弹入 */
@-webkit-keyframes childScaleIn {
    from { opacity: 0; -webkit-transform: scale(0.9) translateX(-50%); transform: scale(0.9) translateX(-50%); }
    to { opacity: 1; -webkit-transform: scale(1) translateX(-50%); transform: scale(1) translateX(-50%); }
}
@keyframes childScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(-50%);
    }
}

/* 页面滚动渐入 */
.child-scroll-reveal {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    -webkit-transition: opacity 0.6s ease-out, -webkit-transform 0.6s ease-out;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.child-scroll-reveal.child-visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* 卡片 stagger 动画 */
.child-stagger-item {
    opacity: 0;
    -webkit-animation: childFadeInUp 0.5s ease-out forwards;
    animation: childFadeInUp 0.5s ease-out forwards;
}

.child-stagger-item:nth-child(1) { animation-delay: 0.05s; }
.child-stagger-item:nth-child(2) { animation-delay: 0.1s; }
.child-stagger-item:nth-child(3) { animation-delay: 0.15s; }
.child-stagger-item:nth-child(4) { animation-delay: 0.2s; }
.child-stagger-item:nth-child(5) { animation-delay: 0.25s; }
.child-stagger-item:nth-child(6) { animation-delay: 0.3s; }
.child-stagger-item:nth-child(7) { animation-delay: 0.35s; }
.child-stagger-item:nth-child(8) { animation-delay: 0.4s; }

/* 按钮通用 hover 效果增强 */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

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

/* 卡片 hover 效果 */
.card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* 图片懒加载过渡 */
img.lazy {
    opacity: 0;
    -webkit-transition: opacity 0.4s ease-in;
    transition: opacity 0.4s ease-in;
}

img.lazy.loaded,
img.child-lazy-img {
    opacity: 1;
}

/* 模态框通用样式 */
.child-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: childFadeIn 0.2s ease-out;
    /* 确保移动端也居中 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
}

.child-modal-content {
    background: var(--bs-body-bg, #fff);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* 定位完全由JS动态控制（body级fixed定位，居中对准按钮） */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: auto;
    animation: none;
    -webkit-animation: none;
}

/* 购买成功庆祝动画（confetti 效果） */
.child-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

.child-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    -webkit-animation: childConfettiFall 3s ease-out forwards;
    animation: childConfettiFall 3s ease-out forwards;
}

@-webkit-keyframes childConfettiFall {
    0% { -webkit-transform: translateY(-100vh) rotate(0deg); transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { -webkit-transform: translateY(100vh) rotate(720deg); transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes childConfettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 收货地址选择列表 */
.child-ship-addr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bs-border-color, #dee2e6);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.child-ship-addr-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.child-ship-addr-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.child-ship-addr-item .addr-info {
    flex: 1;
}

.child-ship-addr-item .addr-name {
    font-weight: 600;
    margin-right: 0.5rem;
}

.child-ship-addr-item .addr-detail {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
}


/* ============================================
   四、商品卡片全面美化（紧凑布局 + 特效）
   ============================================ */

/* --- 卡片基础：紧凑自适应高度 --- */
.post-item.item-grid,
.post-item.grid-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    -webkit-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-bs-theme="dark"] .post-item.item-grid,
[data-bs-theme="dark"] .post-item.grid-overlay {
    background: var(--bs-body-bg, #212529);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* 顶部渐变彩条（hover 显示） */
.post-item.item-grid::before,
.post-item.grid-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 40%, #f093fb 70%, #667eea 100%);
    background-size: 200% 100%;
    opacity: 0;
    z-index: 10;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.post-item.item-grid:hover::before,
.post-item.grid-overlay:hover::before {
    opacity: 1;
    -webkit-animation: childShimmerBar 2s linear infinite;
    animation: childShimmerBar 2s linear infinite;
}

@-webkit-keyframes childShimmerBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes childShimmerBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 卡片整体 hover 上浮 + 阴影 */
.post-item.item-grid:hover,
.post-item.grid-overlay:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.15);
}

/* 扫光效果（z-index 高于图片层） */
.post-item.item-grid::after,
.post-item.grid-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    z-index: 20;
    pointer-events: none;
}

.post-item.item-grid:hover::after,
.post-item.grid-overlay:hover::after {
    -webkit-animation: childCardShine 0.8s ease-out;
    animation: childCardShine 0.8s ease-out;
}

@-webkit-keyframes childCardShine {
    0% { left: -75%; }
    100% { left: 125%; }
}
@keyframes childCardShine {
    0% { left: -75%; }
    100% { left: 125%; }
}

/* --- 图片区域：统一比例 --- */
.post-item.item-grid .entry-media,
.post-item.grid-overlay .entry-media {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.post-item.item-grid .entry-media .media-img,
.post-item.grid-overlay .entry-media .media-img {
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover !important;
    background-position: center !important;
}

.post-item.item-grid:hover .entry-media .media-img,
.post-item.grid-overlay:hover .entry-media .media-img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

/* --- 内容区：紧凑布局（不拉伸） --- */
.post-item.item-grid .entry-wrapper,
.post-item.grid-overlay .entry-wrapper {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.4rem 0.7rem 0.2rem !important;
}

/* --- 分类标签：统一药丸样式 --- */
.post-item.item-grid .entry-cat-dot,
.post-item.grid-overlay .entry-cat-dot {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.12rem 0.55rem !important;
    background: rgba(102, 126, 234, 0.07) !important;
    color: #667eea !important;
    border-radius: 20px !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    border: none !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.5 !important;
}

/* 隐藏父主题的彩色圆点伪元素 */
.post-item.item-grid .entry-cat-dot > a::before,
.post-item.grid-overlay .entry-cat-dot > a::before {
    display: none !important;
}

.post-item.item-grid .entry-cat-dot > a,
.post-item.grid-overlay .entry-cat-dot > a {
    color: #667eea !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
}

.post-item.item-grid:hover .entry-cat-dot,
.post-item.grid-overlay:hover .entry-cat-dot {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.post-item.item-grid:hover .entry-cat-dot > a,
.post-item.grid-overlay:hover .entry-cat-dot > a {
    color: #fff !important;
}

/* --- 标题：统一 2 行高度 --- */
.post-item.item-grid .entry-title,
.post-item.grid-overlay .entry-title {
    margin: 0 0 0.3rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    word-break: break-all !important;
    min-height: 2.46em !important;
    flex-shrink: 0 !important;
}

.post-item.item-grid .entry-title a,
.post-item.grid-overlay .entry-title a {
    color: var(--bs-heading-color, #212529);
    text-decoration: none;
    -webkit-transition: color 0.25s ease;
    transition: color 0.25s ease;
}

.post-item.item-grid:hover .entry-title a,
.post-item.grid-overlay:hover .entry-title a {
    color: #667eea;
}

[data-bs-theme="dark"] .post-item.item-grid .entry-title a,
[data-bs-theme="dark"] .post-item.grid-overlay .entry-title a {
    color: var(--bs-body-color, #dee2e6);
}

/* --- 描述文字：空则隐藏 --- */
.post-item.item-grid .entry-desc,
.post-item.grid-overlay .entry-desc {
    margin: 0 0 0.35rem !important;
    font-size: 0.72rem !important;
    color: #8896a6 !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    word-break: break-all !important;
    flex-shrink: 0 !important;
}

/* 隐藏空的描述区域 */
.post-item.item-grid .entry-desc:empty,
.post-item.grid-overlay .entry-desc:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* --- 底部元信息栏：紧凑紧贴 --- */
.post-item.item-grid .entry-meta,
.post-item.grid-overlay .entry-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 0.2rem !important;
    margin-top: 0.15rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
    font-size: 0.72rem !important;
    color: #8896a6 !important;
    white-space: normal !important;
    letter-spacing: normal !important;
    flex-shrink: 0 !important;
}

[data-bs-theme="dark"] .post-item.item-grid .entry-meta,
[data-bs-theme="dark"] .post-item.grid-overlay .entry-meta {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.post-item.item-grid .entry-meta > span,
.post-item.grid-overlay .entry-meta > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    flex: none !important;
    text-align: left !important;
    margin-right: 0.5rem !important;
}

.post-item.item-grid .entry-meta > span:last-child,
.post-item.grid-overlay .entry-meta > span:last-child {
    margin-right: 0 !important;
    margin-left: auto !important;
}

.post-item.item-grid .entry-meta i,
.post-item.grid-overlay .entry-meta i {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* 价格高亮 + 脉冲动画 */
.post-item.item-grid .meta-price,
.post-item.grid-overlay .meta-price {
    color: #f5576c !important;
    font-weight: 700;
    font-size: 0.78rem !important;
    position: relative;
}

.post-item.item-grid .meta-price i,
.post-item.grid-overlay .meta-price i {
    opacity: 1 !important;
    -webkit-animation: childCoinPulse 2s ease-in-out infinite;
    animation: childCoinPulse 2s ease-in-out infinite;
}

@-webkit-keyframes childCoinPulse {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.15); transform: scale(1.15); }
}
@keyframes childCoinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* --- 角标美化 --- */
.post-item.item-grid .tips-badge .badge,
.post-item.grid-overlay .tips-badge .badge {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.65rem;
    padding: 0.18rem 0.4rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* --- 列表卡片 --- */
.post-item.item-list {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.post-item.item-list:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(102, 126, 234, 0.15);
}

/* --- 相关文章卡片 --- */
.related-posts .post-item.item-grid {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.related-posts .post-item.item-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.12);
}

/* --- 移动端适配 --- */
@media (max-width: 575.98px) {
    .post-item.item-grid,
    .post-item.grid-overlay {
        border-radius: 12px;
    }
    .post-item.item-grid:hover,
    .post-item.grid-overlay:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.1);
    }
    .post-item.item-grid .entry-title,
    .post-item.grid-overlay .entry-title {
        font-size: 0.8rem;
    }
    .post-item.item-grid .entry-wrapper,
    .post-item.grid-overlay .entry-wrapper {
        padding: 0.35rem 0.6rem 0.15rem;
    }
}


/* ============================================
   五、商品详情页底部增强区域
   ============================================ */

.child-detail-bottom-section {
    margin-top: 2rem;
    animation: childFadeInUp 0.6s ease-out;
}

/* 服务承诺栏 */
.child-service-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.04));
    border: 1px solid var(--bs-border-color, #eef0f5);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .child-service-bar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-color: rgba(255, 255, 255, 0.08);
}

.child-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.child-service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.child-service-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: var(--bs-heading-color, #212529);
}

.child-service-text p {
    font-size: 0.78rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0;
    line-height: 1.4;
}

/* FAQ 折叠面板 */
.child-faq-section {
    margin-bottom: 1.5rem;
}

.child-faq-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-heading-color, #212529);
    margin-bottom: 1rem;
}

.child-faq-title i {
    color: #667eea;
}

.child-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.child-faq-item {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 10px;
    overflow: hidden;
    -webkit-transition: box-shadow 0.25s ease;
    transition: box-shadow 0.25s ease;
}

.child-faq-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .child-faq-item {
    border-color: var(--bs-border-color, #495057);
}

.child-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--bs-body-bg, #fff);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.child-faq-question:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

[data-bs-theme="dark"] .child-faq-question {
    background: var(--bs-body-bg, #212529);
}

[data-bs-theme="dark"] .child-faq-question:hover {
    background: var(--bs-tertiary-bg, #343a40);
}

.child-faq-question h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--bs-body-color, #212529);
    flex: 1;
}

.child-faq-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: #667eea;
    font-size: 0.75rem;
    flex-shrink: 0;
    -webkit-transition: transform 0.3s ease, background 0.2s ease;
    transition: transform 0.3s ease, background 0.2s ease;
}

.child-faq-item.active .child-faq-toggle {
    transform: rotate(180deg);
    background: #667eea;
    color: #fff;
}

.child-faq-answer {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.35s ease, padding 0.35s ease;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.child-faq-item.active .child-faq-answer {
    max-height: 200px;
    padding: 0.85rem 1rem;
}

.child-faq-answer p {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0;
    line-height: 1.6;
}

/* CTA 引导区 */
.child-cta-section {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.child-cta-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.child-cta-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 1.25rem;
}

.child-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #fff;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    -webkit-transition: transform 0.25s ease, box-shadow 0.25s ease;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.child-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

@media (max-width: 575.98px) {
    .child-service-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    .child-service-item {
        padding: 0.5rem;
    }
    .child-service-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .child-service-text h4 {
        font-size: 0.82rem;
    }
    .child-service-text p {
        font-size: 0.72rem;
    }
    .child-cta-section {
        padding: 1.5rem 1rem;
    }
    .child-cta-section h3 {
        font-size: 1.1rem;
    }
}

/* ============================================
   三、响应式适配
   ============================================ */

@media (max-width: 991.98px) {
    .child-shop-body .row {
        flex-direction: column;
    }
    
    .child-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .child-price-amount {
        font-size: 1.5rem;
    }
    
    .child-buy-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .child-shop-header {
        padding: 1rem;
    }
    
    .child-shop-body {
        padding: 1rem;
    }
    
    .child-post-title {
        font-size: 1.25rem;
    }
    
    .child-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .child-meta-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .child-price-vip-list {
        flex-direction: column;
    }
    
    .child-download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .child-dl-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* 移动端模态框优化 */
    .child-modal-overlay {
        padding: 0.75rem;
    }

    .child-modal-content {
        padding: 1.25rem;
        border-radius: 12px;
        max-height: 85vh;
    }
}

/* (已移至顶部 child-shop-card 区域) */

/* ============================================
   余额支付信息
   ============================================ */
.child-balance-pay-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

/* 新增地址表单 */
#child-add-addr-form {
    background: var(--bs-body-bg, #fff);
}

#child-add-addr-form h6 {
    color: #667eea;
    font-weight: 600;
}

#child-add-addr-form .form-control-sm {
    border-radius: 6px;
}

#child-add-addr-form .form-control-sm:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* ============================================
   兑换记录卡片样式（横向排版）
   ============================================ */
.child-cdk-card {
    background: #fff;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.child-cdk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.child-cdk-card-charge {
    border-left: 3px solid #198754;
}

.child-cdk-card-vip {
    border-left: 3px solid #0d6efd;
}

.child-cdk-card-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color, #f0f0f0);
}

.child-cdk-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.child-cdk-card-charge .child-cdk-card-icon {
    background: linear-gradient(135deg, #198754, #20c997);
}

.child-cdk-card-vip .child-cdk-card-icon {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
}

.child-cdk-card-type {
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
}

.child-cdk-card-badge {
    flex-shrink: 0;
}

.child-cdk-card-body {
    padding: 0.75rem 1rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.child-cdk-card-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-body-color, #212529);
}

.child-cdk-card-amount small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--bs-secondary-color, #6c757d);
}

.child-cdk-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    gap: 0.5rem;
}

.child-cdk-card-footer span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .child-cdk-card-body {
        padding: 0.5rem 0.75rem;
    }
    .child-cdk-card-header {
        padding: 0.5rem 0.75rem;
    }
    .child-cdk-card-footer {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
    .child-cdk-card-amount {
        font-size: 1.1rem;
    }
}

[data-bs-theme="dark"] .child-cdk-card {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057);
}

[data-bs-theme="dark"] .child-cdk-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .child-cdk-card-footer {
    background: var(--bs-tertiary-bg, #343a40);
}

/* ============================================
   文章代码高亮 + 复制按钮（统一暗色主题）
   ============================================ */

/* highlight.js 暗色主题 */
pre code.hljs {
    display: block;
    /* ★ 不设 overflow，由外层 pre 统一控制滚动 */
    padding: 1.25em;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

code.hljs {
    padding: 3px 5px;
}

/* 统一暗色背景 */
.hljs {
    background: #1a1a2e;
    color: #ffffff;
}

.hljs-comment,.hljs-quote{color:#6a9955;font-style:italic}
.hljs-doctag,.hljs-formula,.hljs-keyword{color:#c792ea}
.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#ffcb6b}
.hljs-literal{color:#82aaff}
.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#c3e88d}
.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#82aaff}
.hljs-bullet,.hljs-link,.hljs-meta,.hljs-request,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#82aaff}
.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_{color:#ffcb6b}
.hljs-emphasis{font-style:italic}
.hljs-strong{font-weight:700}
.hljs-link{text-decoration:underline}

/* 代码块容器 - 终端风格 */
.child-code-wrapper {
    position: relative;
    margin: 1.5em 0;
    border-radius: 12px;
    overflow: hidden; /* 统一裁剪，标题栏+代码区都在内部 */
    background: #1a1a2e;
    border: 1px solid #2a2a40;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    max-width: 100%;
    /* ★ 跨浏览器：防止代码框被父元素 flex/grid 压缩 */
    -webkit-box-flex: 0;
    flex-grow: 0;
    flex-shrink: 0;
}

/* 终端标题栏 */
.child-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: linear-gradient(180deg, #252540 0%, #1e1e36 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px 12px 0 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* macOS 风格圆点 */
.child-code-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.child-code-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.child-code-dots span:nth-child(1) {
    background: #ff5f57;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2) inset;
}

.child-code-dots span:nth-child(2) {
    background: #febc2e;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2) inset;
}

.child-code-dots span:nth-child(3) {
    background: #28c840;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2) inset;
}

/* 代码语言标签（标题栏内） */
.child-code-lang {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8888aa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.child-code-wrapper pre {
    margin: 0;
    padding: 0;
    border-radius: 0;
    /* ★★★ 唯一滚动容器 */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
}

/* 自定义滚动条（WebKit） */
.child-code-wrapper pre::-webkit-scrollbar {
    height: 5px;
}

.child-code-wrapper pre::-webkit-scrollbar-track {
    background: transparent;
}

.child-code-wrapper pre::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}

.child-code-wrapper pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

.child-code-wrapper pre code {
    /* ★ 绝不设 overflow / float，避免产生第二个滚动容器或破坏布局 */
    overflow: visible !important;
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #ffffff;
    background: transparent !important;
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: keep-all !important;
    /* 用 display:inline-block + min-width 让内容自然撑开宽度 */
    display: inline-block !important;
    min-width: 100%;
    box-sizing: border-box;
}

/* 兼容没有 wrapper 的情况 */
.entry-content pre,
.post-content pre {
    position: relative;
    margin: 1.5em 0;
    padding: 0;
    border-radius: 12px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    background: #1a1a2e;
    border: 1px solid #2a2a40;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    max-width: 100%;
}

/* 自定义滚动条（WebKit） */
.entry-content pre::-webkit-scrollbar,
.post-content pre::-webkit-scrollbar {
    height: 5px;
}

.entry-content pre::-webkit-scrollbar-track,
.post-content pre::-webkit-scrollbar-track {
    background: transparent;
}

.entry-content pre::-webkit-scrollbar-thumb,
.post-content pre::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}

.entry-content pre code,
.post-content pre code {
    display: inline-block !important;
    overflow: visible !important;
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #ffffff;
    background: transparent !important;
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: keep-all !important;
    min-width: 100%;
    box-sizing: border-box;
}

/* 复制按钮 - 标题栏右侧，固定定位 */
.child-code-copy-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #8888aa;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
    font-family: inherit;
    flex-shrink: 0;
    /* ★ 确保始终在标题栏右侧 */
    position: relative;
    z-index: 5;
    order: 99; /* flex 排序放最后 */
}

.child-code-copy-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #c8c8e0;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.child-code-copy-btn.copied {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border-color: rgba(34,197,94,0.3);
}

/* 代码框底部微光效果 */
.child-code-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120,100,255,0.15), transparent);
    pointer-events: none;
}

/* 行内代码 */
.entry-content code:not(pre code),
.post-content code:not(pre code) {
    padding: 0.15rem 0.45rem;
    background: rgba(120,100,255,0.08);
    border: 1px solid rgba(120,100,255,0.15);
    border-radius: 5px;
    font-size: 0.875em;
    color: #c4b5fd;
    font-weight: 500;
}

[data-bs-theme="dark"] .entry-content code:not(pre code),
[data-bs-theme="dark"] .post-content code:not(pre code) {
    background: rgba(120,100,255,0.12);
    border-color: rgba(120,100,255,0.2);
}

/* 自动内链样式 */
.cse-auto-link {
    color: #7c6ff7;
    text-decoration: none;
    border-bottom: 1px dashed rgba(124,111,247,0.4);
    transition: all 0.2s ease;
}
.cse-auto-link:hover {
    color: #9b8fff;
    border-bottom-color: #9b8fff;
    background: rgba(124,111,247,0.06);
}
[data-bs-theme="dark"] .cse-auto-link {
    color: #a78bfa;
    border-bottom-color: rgba(167,139,250,0.3);
}
[data-bs-theme="dark"] .cse-auto-link:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
    background: rgba(167,139,250,0.08);
}

/* ============================================
   六、侧边栏增强组件
   ============================================ */

.child-sidebar-enhance {
    background: var(--bs-body-bg, #fff);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

[data-bs-theme="dark"] .child-sidebar-enhance {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057);
}

.child-sidebar-enhance .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #667eea;
    color: var(--bs-heading-color, #212529);
}

/* 购物指南 */
.child-sidebar-guide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.child-guide-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.04));
    border-radius: 8px;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.child-guide-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.child-guide-item i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.child-guide-item span {
    font-size: 0.82rem;
    color: var(--bs-body-color, #212529);
    font-weight: 500;
}

/* 温馨提示 */
.child-sidebar-notice {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.child-sidebar-notice p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0;
    line-height: 1.5;
}

.child-sidebar-notice p i {
    color: #667eea;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* 侧边栏 FAQ 折叠面板 */
.child-sidebar-faq .widget-title {
    border-bottom-color: #f59e0b !important;
}
.child-sidebar-faq .widget-title i {
    color: #f59e0b;
}

.child-sidebar-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.child-sidebar-faq-item {
    border: 1px solid var(--bs-border-color, #eef0f5);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.child-sidebar-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .child-sidebar-faq-item {
    border-color: rgba(255,255,255,0.08);
}

.child-sidebar-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--bs-body-bg, #fff);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.child-sidebar-faq-q:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

[data-bs-theme="dark"] .child-sidebar-faq-q {
    background: var(--bs-body-bg, #212529);
}

[data-bs-theme="dark"] .child-sidebar-faq-q:hover {
    background: var(--bs-tertiary-bg, #343a40);
}

.child-sidebar-faq-q span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
    flex: 1;
    line-height: 1.4;
}

.child-sidebar-faq-arrow {
    font-size: 0.65rem;
    color: #667eea;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.child-sidebar-faq-item.active .child-sidebar-faq-arrow {
    transform: rotate(180deg);
}

.child-sidebar-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.75rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.child-sidebar-faq-item.active .child-sidebar-faq-a {
    max-height: 150px;
    padding: 0.6rem 0.75rem;
}

.child-sidebar-faq-a p {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0;
    line-height: 1.5;
}

[data-bs-theme="dark"] .child-sidebar-faq-a {
    background: rgba(255,255,255,0.03);
}

@media (max-width: 575.98px) {
    .child-sidebar-enhance {
        padding: 1rem;
    }
    .child-guide-item {
        padding: 0.5rem 0.6rem;
    }
    .child-guide-item span {
        font-size: 0.78rem;
    }
}

/* 隐藏子主题商品页面的通用版权声明 */
.child-shop-card ~ .entry-copyright,
article .entry-copyright {
    display: none !important;
}

/* 隐藏商品详情页的相关文章和上下篇导航（通过 body 类控制） */
body.child-goods-page .entry-navigation,
body.child-goods-page .related-posts {
    display: none !important;
}

/* ============================================
   商品详情内容区域图片铺满容器
   解决 WordPress 编辑器插入图片带固定宽高导致不铺满的问题
   ============================================ */

/* 内容区域图片：去除固定宽高，铺满容器宽度 */
.post-content img,
.entry-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

/* 图片容器（figure/wp-block-image）也铺满 */
.post-content figure,
.post-content .wp-block-image,
.entry-content figure,
.entry-content .wp-block-image {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 确保图片在 figure 内也铺满 */
.post-content figure img,
.post-content .wp-block-image img,
.entry-content figure img,
.entry-content .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* ============================================
   七、应用详情页美化模板
   ============================================ */

/* 隐藏应用页的侧边栏、相关文章、上下篇导航 */
.single-app .sidebar-wrapper,
.single-app .entry-navigation,
.single-app .related-posts,
.single-app .article-header,
.single-app .entry-media-preview,
.single-app .entry-social {
    display: none !important;
}

/* 应用详情页容器 */
.child-app-detail-page {
    animation: childFadeInUp 0.5s ease-out;
}

/* 主卡片 */
.child-app-detail-card {
    position: relative;
    background: var(--bs-body-bg, #fff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] .child-app-detail-card {
    background: var(--bs-body-bg, #212529);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0,0,0,0.2);
}

/* 顶部渐变装饰条 */
.child-app-detail-accent {
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #667eea 75%, #764ba2 100%);
    background-size: 300% 100%;
    animation: childShimmerBar 4s linear infinite;
}

/* 卡片主体 */
.child-app-detail-body {
    padding: 0.5rem 1.5rem 1.25rem;
}

@media (max-width: 575.98px) {
    .child-app-detail-body {
        padding: 0.5rem 1rem 1rem;
    }
}

/* ---- 应用头部：图标 + 标题 ---- */
.child-app-detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.03));
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.06);
}

@media (max-width: 575.98px) {
    .child-app-detail-header {
        gap: 1rem;
        padding: 1rem;
    }
}

/* 应用图标容器 */
.child-app-detail-icon-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
    position: relative;
}

.child-app-detail-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.child-app-detail-icon-wrap:hover {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.25), 0 0 0 1px rgba(102, 126, 234, 0.15);
}

@media (max-width: 575.98px) {
    .child-app-detail-icon-wrap {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }
    .child-app-detail-icon-wrap::after {
        border-radius: 16px;
    }
}

.child-app-detail-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 无图标时的占位符 */
.child-app-detail-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.75rem;
}

@media (max-width: 575.98px) {
    .child-app-detail-icon-placeholder {
        font-size: 1.4rem;
    }
}

/* 标题区域 */
.child-app-detail-info {
    flex: 1;
    min-width: 0;
}

.child-app-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bs-heading-color, #212529);
    margin: 0 0 0.6rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

@media (max-width: 575.98px) {
    .child-app-detail-title {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }
}

/* 分类标签 */
.child-app-detail-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.child-app-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    color: #667eea;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.25s ease;
}

.child-app-cat-badge:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.child-app-cat-badge i {
    font-size: 0.65rem;
}

[data-bs-theme="dark"] .child-app-cat-badge {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
    color: #8b9cf7;
}

[data-bs-theme="dark"] .child-app-cat-badge:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* ---- 元信息栏 ---- */
.child-app-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1.15rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border: 1px solid rgba(102, 126, 234, 0.08);
    border-radius: 14px;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .child-app-detail-meta {
    background: rgba(102, 126, 234, 0.06);
    border-color: rgba(102, 126, 234, 0.12);
}

@media (max-width: 575.98px) {
    .child-app-detail-meta {
        gap: 0.75rem;
        padding: 0.65rem 0.85rem;
    }
}

.child-app-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 500;
}

.child-app-meta-item i {
    color: #667eea;
    font-size: 0.82rem;
    opacity: 0.85;
}

/* ---- 内容区域 ---- */
.child-app-detail-content {
    margin-bottom: 1.5rem;
}

.child-app-detail-content .entry-content,
.child-app-detail-content .post-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--bs-body-color, #333);
}

[data-bs-theme="dark"] .child-app-detail-content .entry-content,
[data-bs-theme="dark"] .child-app-detail-content .post-content {
    color: var(--bs-body-color, #dee2e6);
}

/* 内容区域段落间距 */
.child-app-detail-content .entry-content p,
.child-app-detail-content .post-content p {
    margin-bottom: 1rem;
}

/* 覆盖父主题 h3::before 蓝色装饰条（避免在应用详情页产生长竖线） */
.child-app-detail-body .post-content h3::before,
.child-app-detail-body .post-content .h3::before,
.child-app-detail-content .post-content h3::before,
.child-app-detail-content .post-content .h3::before {
    display: none !important;
}

/* ---- 操作按钮区 ---- */
.child-app-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, #e5e7eb);
}

[data-bs-theme="dark"] .child-app-detail-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 575.98px) {
    .child-app-detail-actions {
        gap: 0.5rem;
        padding-top: 1.25rem;
        margin-top: 1.25rem;
    }
}

.child-app-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.35rem;
    border: 1.5px solid var(--bs-border-color, #e5e7eb);
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bs-body-color, #495057);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

[data-bs-theme="dark"] .child-app-action-btn {
    background: var(--bs-body-bg, #212529);
    border-color: rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    box-shadow: none;
}

.child-app-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 分享按钮 */
.child-app-action-btn--share {
    border-color: rgba(13, 202, 240, 0.3);
    color: #0dcaf0;
}

.child-app-action-btn--share:hover {
    background: #0dcaf0;
    color: #fff;
    border-color: #0dcaf0;
    box-shadow: 0 4px 16px rgba(13, 202, 240, 0.3);
}

/* 收藏按钮 */
.child-app-action-btn--fav {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.child-app-action-btn--fav:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* 点赞按钮 */
.child-app-action-btn--like {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.child-app-action-btn--like:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.child-app-action-btn i {
    font-size: 0.9rem;
}

/* 点赞计数 */
.child-app-action-btn .count {
    font-weight: 700;
}

/* ---- 评分显示（标题旁） ---- */
.child-app-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.child-app-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.2));
}

.child-app-stars .fa-star-o {
    opacity: 0.3;
}

.child-app-score-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
}

/* ---- 信息概览栏扩展 ---- */
.child-app-meta-free {
    color: #198754 !important;
    font-weight: 700;
}

.child-app-meta-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.child-app-meta-link:hover {
    color: var(--bs-primary, #0d6efd);
}

/* ---- 一句话评测 ---- */
.child-app-review-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(255, 193, 7, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-left: 3px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    font-size: 0.92rem;
    color: var(--bs-body-color, #495057);
    line-height: 1.6;
}

.child-app-review-summary i {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .child-app-review-summary {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
    color: var(--bs-body-color, #dee2e6);
}

/* ---- Tab 导航 ---- */
.child-app-tabs {
    display: flex !important;
    gap: 0.4rem !important;
    margin-bottom: 1.25rem !important;
    padding: 0.5rem !important;
    background: var(--bs-tertiary-bg, #f8f9fa) !important;
    border-radius: 14px !important;
    border: 1px solid var(--bs-border-color, #e5e7eb) !important;
    border-bottom: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

[data-bs-theme="dark"] .child-app-tabs {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.child-app-tab-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem !important;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d) !important;
    background: transparent !important;
    border: 1.5px solid transparent !important;
    border-bottom: 1.5px solid transparent !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}

.child-app-tab-btn:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.06) !important;
}

.child-app-tab-btn.active {
    color: #fff !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: transparent !important;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.child-app-tab-btn i {
    font-size: 0.82rem;
}

@media (max-width: 575.98px) {
    .child-app-tabs {
        gap: 0.3rem !important;
        padding: 0.4rem !important;
    }
    .child-app-tab-btn {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.82rem;
    }
}

/* ---- Tab 面板 ---- */
.child-app-tab-panel {
    display: none;
    animation: childFadeInUp 0.35s ease-out;
}

.child-app-tab-panel.active {
    display: block;
}

@keyframes childFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- 评分大卡片 ---- */
.child-app-review-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.04));
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
}

.child-app-review-score-big {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.child-app-review-score-big .score-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.child-app-review-score-big .score-max {
    font-size: 1rem;
    color: var(--bs-secondary-color, #999);
    font-weight: 500;
}

.child-app-review-stars-big {
    font-size: 1.25rem;
    color: #f59e0b;
    letter-spacing: 2px;
}

.child-app-review-stars-big .fa-star-o {
    opacity: 0.3;
}

/* 评分数字与星星之间的装饰分隔线 */
.child-app-review-score-big::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #f59e0b);
    border-radius: 1px;
    margin: 0.5rem 0;
}

[data-bs-theme="dark"] .child-app-review-card {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.15);
}

[data-bs-theme="dark"] .child-app-review-score-big .score-num {
    color: #8b9cf7;
}

@media (max-width: 575.98px) {
    .child-app-review-card {
        padding: 1rem;
        gap: 1rem;
    }
    .child-app-review-score-big .score-num {
        font-size: 2rem;
    }
}

/* ---- 优缺点对比 ---- */
.child-app-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 575.98px) {
    .child-app-pros-cons {
        grid-template-columns: 1fr;
    }
}

.child-app-pros,
.child-app-cons {
    padding: 1.15rem;
    border-radius: 12px;
}

.child-app-pros {
    background: rgba(25, 135, 84, 0.05);
    border: 1px solid rgba(25, 135, 84, 0.12);
}

.child-app-cons {
    background: rgba(220, 53, 69, 0.04);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.child-app-pros h4,
.child-app-cons h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.child-app-pros h4 { color: #198754; }
.child-app-cons h4 { color: #dc3545; }

.child-app-pros ul,
.child-app-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.child-app-pros li,
.child-app-cons li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--bs-body-color, #495057);
}

[data-bs-theme="dark"] .child-app-pros li,
[data-bs-theme="dark"] .child-app-cons li {
    color: var(--bs-body-color, #dee2e6);
}

.child-app-pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: 700;
}

.child-app-cons li::before {
    content: '\2212';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
}

/* ---- 多维评分进度条 ---- */
.child-app-dim-scores {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--bs-border-color, #e9ecef);
}

.child-app-dim-scores h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-heading-color, #212529);
}

.child-app-dim-scores h4 i {
    color: #667eea;
    margin-right: 0.4rem;
}

.child-app-dim-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.child-app-dim-item:last-child {
    margin-bottom: 0;
}

.child-app-dim-label {
    flex: 0 0 90px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bs-body-color, #495057);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.child-app-dim-label i {
    color: #667eea;
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.child-app-dim-bar {
    flex: 1;
    height: 8px;
    background: var(--bs-border-color, #dee2e6);
    border-radius: 4px;
    overflow: hidden;
}

.child-app-dim-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.6s ease;
}

.child-app-dim-num {
    flex: 0 0 42px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #667eea;
    text-align: right;
    font-family: monospace;
}

[data-bs-theme="dark"] .child-app-dim-scores {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .child-app-dim-label {
    color: var(--bs-body-color, #dee2e6);
}

[data-bs-theme="dark"] .child-app-dim-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .child-app-dim-fill {
    background: linear-gradient(90deg, #8b9cf7, #a855f7);
}

[data-bs-theme="dark"] .child-app-dim-num {
    color: #8b9cf7;
}

@media (max-width: 575.98px) {
    .child-app-dim-scores {
        padding: 1rem;
    }
    .child-app-dim-label {
        flex: 0 0 72px;
        font-size: 0.78rem;
    }
    .child-app-dim-num {
        flex: 0 0 36px;
        font-size: 0.72rem;
    }
}

/* ---- 详细评测内容 ---- */
.child-app-review-detail {
    margin-top: 1rem;
}

.child-app-review-detail .entry-content,
.child-app-review-detail .post-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---- 使用教程内容 ---- */
.child-app-tutorial-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--bs-body-color, #333);
    padding: 1rem 1.25rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--bs-border-color, #e9ecef);
}

.child-app-tutorial-content p {
    margin-bottom: 1rem;
}

.child-app-tutorial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-bs-theme="dark"] .child-app-tutorial-content {
    color: var(--bs-body-color, #dee2e6);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

/* ---- 步骤式教程 ---- */
.child-app-tutorial-steps {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.child-app-tutorial-steps::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg, #667eea, #764ba2, transparent);
    border-radius: 1px;
    opacity: 0.3;
}

[data-bs-theme="dark"] .child-app-tutorial-steps::before {
    background: linear-gradient(180deg, #8b9cf7, #a855f7, transparent);
    opacity: 0.4;
}

.child-app-step-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.child-app-step-item:last-child {
    margin-bottom: 0;
}

.child-app-step-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #198754, #20c997);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
}

.child-app-step-content {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #e9ecef);
    border-left: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.child-app-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bs-heading-color, #212529);
}

.child-app-step-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--bs-body-color, #495057);
}

.child-app-step-desc p {
    margin-bottom: 0.5rem;
}

.child-app-step-img {
    margin-top: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #e9ecef);
}

.child-app-step-img img {
    width: 100%;
    height: auto;
    display: block;
}

[data-bs-theme="dark"] .child-app-step-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(139, 156, 247, 0.3);
}

[data-bs-theme="dark"] .child-app-step-dot {
    background: linear-gradient(135deg, #20c997, #198754);
    box-shadow: 0 2px 6px rgba(32, 201, 151, 0.3);
}

/* ---- Tab 难度标签 ---- */
.child-app-tab-diff {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    border-radius: 8px;
    margin-left: 0.35rem;
    vertical-align: middle;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .child-app-tutorial-steps {
        padding-left: 1.5rem;
    }
    .child-app-step-dot {
        left: -1.5rem;
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    .child-app-tutorial-steps::before {
        left: 11px;
    }
    .child-app-step-content {
        padding: 0.75rem 1rem;
    }
}

/* ---- 版本时间线 ---- */
.child-app-version-timeline {
    position: relative;
    padding-left: 1.75rem;
}

.child-app-version-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--bs-border-color, #dee2e6);
    border-radius: 1px;
}

[data-bs-theme="dark"] .child-app-version-timeline::before {
    background: rgba(255, 255, 255, 0.1);
}

.child-app-version-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.child-app-version-item:last-child {
    margin-bottom: 0;
}

.child-app-version-dot {
    position: absolute;
    left: -1.75rem;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bs-body-bg, #fff);
    border: 2px solid var(--bs-border-color, #ccc);
    z-index: 1;
}

.child-app-version-item.is-latest .child-app-version-dot {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.child-app-version-card {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #e9ecef);
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

[data-bs-theme="dark"] .child-app-version-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.child-app-version-item.is-latest .child-app-version-card {
    border-color: rgba(13, 110, 253, 0.2);
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.06);
}

.child-app-version-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.child-app-version-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bs-heading-color, #212529);
}

.child-app-version-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: var(--bs-primary, #0d6efd);
    border-radius: 4px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.child-app-version-date {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #999);
}

.child-app-version-size {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #999);
    margin-bottom: 0.4rem;
}

.child-app-version-size i {
    margin-right: 0.25rem;
    opacity: 0.6;
}

.child-app-version-changelog {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--bs-body-color, #495057);
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .child-app-version-changelog {
    color: var(--bs-body-color, #adb5bd);
}

.child-app-version-dl {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    font-weight: 600;
}

.child-app-version-dl:hover {
    text-decoration: underline;
}

/* ---- 空状态 ---- */
.child-app-tab-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color, #999);
}

.child-app-tab-empty i {
    font-size: 2rem;
    opacity: 0.25;
    margin-bottom: 0.75rem;
    display: block;
}

.child-app-tab-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* ---- 下载 CTA 卡片 ---- */
.child-app-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.04), rgba(102, 126, 234, 0.06));
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 14px;
    flex-wrap: wrap;
}

[data-bs-theme="dark"] .child-app-cta-card {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.15);
}

.child-app-cta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.child-app-cta-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bs-heading-color, #212529);
}

.child-app-cta-price.free {
    color: #198754;
    background: rgba(25, 135, 84, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
}

.child-app-cta-platforms {
    display: flex;
    gap: 0.35rem;
}

.child-app-cta-plat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bs-tertiary-bg, #f0f2f5);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.8rem;
}

[data-bs-theme="dark"] .child-app-cta-plat {
    background: rgba(255, 255, 255, 0.08);
}

.child-app-cta-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.child-app-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.child-app-cta-btn--primary {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.child-app-cta-btn--primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
    color: #fff;
    text-decoration: none;
}

.child-app-cta-btn--secondary {
    background: var(--bs-tertiary-bg, #f0f2f5);
    color: var(--bs-body-color, #495057);
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.child-app-cta-btn--secondary:hover {
    background: var(--bs-body-bg, #fff);
    border-color: var(--bs-primary, #0d6efd);
    color: var(--bs-primary, #0d6efd);
    transform: translateY(-2px);
    text-decoration: none;
}

[data-bs-theme="dark"] .child-app-cta-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #adb5bd;
}

@media (max-width: 575.98px) {
    .child-app-cta-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .child-app-cta-info {
        justify-content: center;
    }
    .child-app-cta-btns {
        justify-content: center;
    }
}

/* ---- 应用截图画廊 ---- */
.child-app-screenshots {
    margin-bottom: 1.25rem;
}

.child-app-screenshots-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.child-app-screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.child-app-screenshots-scroll::-webkit-scrollbar-track {
    background: var(--bs-tertiary-bg, #f0f2f5);
    border-radius: 3px;
}

.child-app-screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--bs-secondary-color, #adb5bd);
    border-radius: 3px;
}

.child-app-screenshot-item {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #e9ecef);
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.child-app-screenshot-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.child-app-screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 575.98px) {
    .child-app-screenshot-item {
        width: 160px;
        height: 112px;
    }
}

/* ---- 截图灯箱 ---- */
.child-app-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.child-app-lightbox.active {
    display: flex;
}

.child-app-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.child-app-lightbox-close:hover {
    opacity: 1;
}

.child-app-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-app-lightbox-img img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}

.child-app-lightbox-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.child-app-lightbox-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-app-lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ---- 相关推荐 ---- */
.child-app-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, #e9ecef);
}

[data-bs-theme="dark"] .child-app-related {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.child-app-related-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-heading-color, #212529);
}

.child-app-related-title i {
    color: #667eea;
    margin-right: 0.3rem;
}

.child-app-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.child-app-related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    color: var(--bs-body-color, inherit);
}

.child-app-related-item:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--bs-body-color, inherit);
}

[data-bs-theme="dark"] .child-app-related-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.child-app-related-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bs-tertiary-bg, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.child-app-related-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.child-app-related-icon-wrap i {
    font-size: 1.2rem;
    color: #adb5bd;
}

.child-app-related-name {
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.child-app-related-stars {
    font-size: 0.5rem;
    color: #f59e0b;
    margin-top: 0.1rem;
}

@media (max-width: 575.98px) {
    .child-app-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    .child-app-related-icon-wrap {
        width: 48px;
        height: 48px;
    }
}

/* ---- 应用对比表 ---- */
.child-app-compare-wrap {
    margin: 1.5rem 0;
}

.child-app-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 12px;
}

.child-app-compare-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.child-app-compare-table th,
.child-app-compare-table td {
    padding: 0.75rem 0.85rem;
    text-align: center;
    border-bottom: 1px solid var(--bs-border-color, #eee);
    vertical-align: middle;
}

.child-app-compare-table thead th {
    background: rgba(13, 110, 253, 0.04);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--bs-heading-color, #333);
    border-bottom: 2px solid var(--bs-border-color, #dee2e6);
}

[data-bs-theme="dark"] .child-app-compare-table thead th {
    background: rgba(13, 110, 253, 0.08);
}

.child-compare-feat {
    text-align: left !important;
    font-weight: 600;
    color: var(--bs-secondary-color, #666);
    white-space: nowrap;
    min-width: 100px;
    background: rgba(0,0,0,0.015);
}

[data-bs-theme="dark"] .child-compare-feat {
    background: rgba(255,255,255,0.02);
}

.child-compare-app-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
}

.child-compare-app-head img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.child-compare-app-head i {
    font-size: 1.6rem;
    color: var(--bs-secondary-color, #999);
}

.child-compare-app-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-compare-score {
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.9rem;
}

.child-compare-score i {
    font-size: 0.75rem;
}

.child-compare-free {
    color: #198754;
    font-weight: 700;
    background: rgba(25, 135, 84, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.82rem;
}

.child-compare-plats {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--bs-secondary-color, #666);
}

.child-compare-summary {
    font-size: 0.78rem;
    color: var(--bs-secondary-color, #666);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.child-compare-na {
    color: var(--bs-secondary-color, #ccc);
    font-size: 0.9rem;
}

/* 最佳高亮 */
.child-compare-best {
    background: rgba(25, 135, 84, 0.08) !important;
    position: relative;
}

[data-bs-theme="dark"] .child-compare-best {
    background: rgba(32, 201, 151, 0.1) !important;
}

.child-compare-action-row td {
    border-bottom: none !important;
    padding-top: 0.5rem;
}

.child-compare-view-btn {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.child-compare-view-btn:hover {
    background: #0d6efd;
    color: #fff;
}

@media (max-width: 767.98px) {
    .child-app-compare-table {
        min-width: 400px;
        font-size: 0.82rem;
    }
    .child-compare-app-head img {
        width: 36px;
        height: 36px;
    }
    .child-compare-feat {
        min-width: 80px;
        font-size: 0.78rem;
    }
}

/* ============================================
   应用模块视觉美化增强
   ============================================ */

/* ---- 新增 Keyframes ---- */
@keyframes appDimFill {
    from { width: 0; }
}
@keyframes appGlowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.12); }
    50% { box-shadow: 0 0 32px rgba(102, 126, 234, 0.25); }
}
@keyframes appBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes appCtaGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25); }
    50% { box-shadow: 0 6px 24px rgba(13, 110, 253, 0.4); }
}
@keyframes appStepSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes appBestShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ====================================================
   A. 导航页卡片美化 - 大气版
   ==================================================== */

/* 分类标题渐变底边装饰 */
.child-app-sub-cat-name {
    position: relative;
    padding-bottom: 0.6rem;
}
.child-app-sub-cat-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    width: 60px;
    height: 2.5px;
    background: linear-gradient(90deg, #667eea, #764ba2, transparent);
    border-radius: 2px;
}

/* 卡片 hover 高级提升 */
.child-app-item:hover .child-app-icon-wrap {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 32px rgba(102, 126, 234, 0.22), 0 4px 12px rgba(0,0,0,0.06);
}
.child-app-item:hover .child-app-name {
    color: #667eea;
}
.child-app-item:hover .child-app-card-stars {
    opacity: 1;
    transform: scale(1.08);
}
.child-app-item:hover .child-app-card-summary {
    color: var(--bs-body-color, #495057);
}

/* 卡片星星/摘要/平台图标过渡 */
.child-app-card-stars,
.child-app-card-summary,
.child-app-card-plats {
    transition: all 0.3s ease;
}
.child-app-card-stars { opacity: 0.8; }

/* 免费角标脉冲 */
.child-app-free-badge {
    animation: appBadgePulse 2.5s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.35);
    border-radius: 5px;
}

/* 推荐标记闪光 */
.child-app-feat-badge {
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border-radius: 5px;
}

/* 暗色模式 - 导航页 */
[data-bs-theme="dark"] .child-app-sub-cat-name::after {
    background: linear-gradient(90deg, #8b9cf7, #a855f7, transparent);
}
[data-bs-theme="dark"] .child-app-item:hover .child-app-icon-wrap {
    box-shadow: 0 14px 32px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0,0,0,0.15);
}
[data-bs-theme="dark"] .child-app-item:hover .child-app-name {
    color: #8b9cf7;
}

/* 导航页容器微背景 */
.child-app-directory {
    position: relative;
}

/* 父分类组分割线增强 */
.child-app-parent-group + .child-app-parent-group {
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, #e5e7eb);
}
[data-bs-theme="dark"] .child-app-parent-group + .child-app-parent-group {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* 分类组入场动画 */
@keyframes appGridFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.child-app-sub-group {
    animation: appGridFadeUp 0.45s ease-out both;
}
.child-app-sub-group:nth-child(1) { animation-delay: 0s; }
.child-app-sub-group:nth-child(2) { animation-delay: 0.06s; }
.child-app-sub-group:nth-child(3) { animation-delay: 0.12s; }
.child-app-sub-group:nth-child(4) { animation-delay: 0.18s; }
.child-app-sub-group:nth-child(5) { animation-delay: 0.24s; }
.child-app-sub-group:nth-child(6) { animation-delay: 0.30s; }

/* 应用卡片入场动画 */
@keyframes appCardPop {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.child-app-grid .child-app-item {
    animation: appCardPop 0.35s ease-out both;
}
.child-app-grid .child-app-item:nth-child(1) { animation-delay: 0.02s; }
.child-app-grid .child-app-item:nth-child(2) { animation-delay: 0.04s; }
.child-app-grid .child-app-item:nth-child(3) { animation-delay: 0.06s; }
.child-app-grid .child-app-item:nth-child(4) { animation-delay: 0.08s; }
.child-app-grid .child-app-item:nth-child(5) { animation-delay: 0.10s; }
.child-app-grid .child-app-item:nth-child(6) { animation-delay: 0.12s; }
.child-app-grid .child-app-item:nth-child(7) { animation-delay: 0.14s; }
.child-app-grid .child-app-item:nth-child(8) { animation-delay: 0.16s; }

/* 移动端禁用入场动画 */
@media (max-width: 768px) {
    .child-app-sub-group,
    .child-app-grid .child-app-item {
        animation: none !important;
    }
}

/* ====================================================
   B. 详情页 - 评分卡片增强
   ==================================================== */

/* 评分卡片呼吸光晕 + 渐变边框 */
.child-app-review-card {
    position: relative;
    animation: appGlowPulse 4s ease-in-out infinite;
    border: 1px solid rgba(102, 126, 234, 0.12);
}
.child-app-review-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.08), rgba(245,158,11,0.06)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 暗色模式光晕 */
[data-bs-theme="dark"] .child-app-review-card {
    border-color: rgba(139, 156, 247, 0.15);
}
[data-bs-theme="dark"] .child-app-review-card::before {
    background: linear-gradient(135deg, rgba(139,156,247,0.15), rgba(168,85,247,0.1), rgba(245,158,11,0.08)) border-box;
}

/* ====================================================
   C. 详情页 - 维度评分进度条动画
   ==================================================== */

.child-app-dim-fill {
    animation: appDimFill 1s cubic-bezier(.4,0,.2,1) both;
    position: relative;
}
.child-app-dim-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: appBestShine 2.5s ease-in-out 1s infinite;
}

/* ====================================================
   D. 详情页 - 优缺点卡片美化
   ==================================================== */

.child-app-pros,
.child-app-cons {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.child-app-pros:hover,
.child-app-cons:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
[data-bs-theme="dark"] .child-app-pros:hover,
[data-bs-theme="dark"] .child-app-cons:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ====================================================
   E. 详情页 - CTA 按钮区增强
   ==================================================== */

/* CTA 卡片微光边框 */
.child-app-cta-card {
    position: relative;
    overflow: hidden;
}
.child-app-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: appBestShine 6s ease-in-out infinite;
}

/* 主按钮呼吸阴影 */
.child-app-cta-btn--primary {
    animation: appCtaGlow 3s ease-in-out infinite;
}
.child-app-cta-btn--primary:hover {
    animation: none;
    box-shadow: 0 8px 28px rgba(13, 110, 253, 0.45);
}

/* ====================================================
   F. 详情页 - 步骤教程美化
   ==================================================== */

/* 步骤卡片依次滑入 */
.child-app-step-item {
    animation: appStepSlideIn 0.5s ease-out both;
}
.child-app-step-item:nth-child(1) { animation-delay: 0s; }
.child-app-step-item:nth-child(2) { animation-delay: 0.08s; }
.child-app-step-item:nth-child(3) { animation-delay: 0.16s; }
.child-app-step-item:nth-child(4) { animation-delay: 0.24s; }
.child-app-step-item:nth-child(5) { animation-delay: 0.32s; }
.child-app-step-item:nth-child(6) { animation-delay: 0.4s; }

/* 步骤圆点呼吸 */
.child-app-step-dot {
    animation: childPulse 2.5s ease-in-out infinite;
}

/* 步骤内容卡片 hover */
.child-app-step-content {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.child-app-step-content:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
}
[data-bs-theme="dark"] .child-app-step-content:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-color: rgba(139, 156, 247, 0.2);
    border-left-color: #8b9cf7;
}

/* ====================================================
   G. 详情页 - 对比表美化
   ==================================================== */

/* 表头渐变底边 */
.child-app-compare-table thead th {
    position: relative;
}
.child-app-compare-table thead th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    opacity: 0.4;
}

/* 最佳标记顶部绿色强调线 */
.child-compare-best {
    box-shadow: inset 0 2px 0 0 rgba(25, 135, 84, 0.5);
}
[data-bs-theme="dark"] .child-compare-best {
    box-shadow: inset 0 2px 0 0 rgba(32, 201, 151, 0.5);
}

/* 查看详情按钮 hover 增强 */
.child-compare-view-btn {
    position: relative;
    overflow: hidden;
}
.child-compare-view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s ease;
}
.child-compare-view-btn:hover::before {
    left: 100%;
}

/* ====================================================
   H. 详情页 - 版本时间线美化
   ==================================================== */

/* 最新版本卡片微光 */
.child-app-version-item.is-latest .child-app-version-card {
    position: relative;
    overflow: hidden;
}
.child-app-version-item.is-latest .child-app-version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13,110,253,0.04), transparent);
    animation: appBestShine 5s ease-in-out infinite;
}

/* ====================================================
   I. 详情页 - 相关推荐美化
   ==================================================== */

.child-app-related-item {
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.child-app-related-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.12);
}
.child-app-related-icon-wrap {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.child-app-related-item:hover .child-app-related-icon-wrap {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

/* ====================================================
   J. 详情页 - Tab 导航美化
   ==================================================== */

/* Tab 活跃项渐变胶囊 */
.child-app-tab-btn.active {
    position: relative;
}

/* Tab 面板切换动画 */
.child-app-tab-panel.active {
    animation: childFadeInUp 0.4s ease-out;
}

/* ====================================================
   K. 详情页 - 截图画廊美化
   ==================================================== */

.child-app-screenshot-item {
    position: relative;
    overflow: hidden;
}
.child-app-screenshot-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.child-app-screenshot-item:hover::after {
    opacity: 1;
}

/* ====================================================
   L. 详情页 - 一句话评测美化
   ==================================================== */

.child-app-review-summary {
    position: relative;
    overflow: hidden;
}
.child-app-review-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.04), transparent);
    animation: appBestShine 8s ease-in-out infinite;
}

/* ====================================================
   M. 整体统一：全局过渡与细节
   ==================================================== */

/* 应用详情页全局卡片统一圆角和阴影 */
.child-app-detail-card,
.child-app-review-card,
.child-app-cta-card,
.child-app-step-content,
.child-app-version-card {
    border-radius: 16px;
}

/* 确保所有暗色模式过渡平滑 */
[data-bs-theme="dark"] .child-app-compare-table thead th::after {
    opacity: 0.25;
}

/* 响应式美化补充 */
@media (max-width: 575.98px) {
    .child-app-review-card {
        animation: none;
    }
    .child-app-review-card::before {
        display: none;
    }
    .child-app-cta-btn--primary {
        animation: none;
    }
    .child-app-step-dot {
        animation: none;
    }
    .child-app-sub-cat-name::after {
        width: 40px;
    }
    .child-app-top-tabs {
        border-radius: 12px;
    }
}

/* ============================================
   八、底部版权 & 备案信息美化
   ============================================ */

/* 底部信息容器 */
.child-footer-bottom {
    text-align: center;
    padding: 1rem 0 0.5rem;
    margin-top: 0.5rem;
}

/* 版权信息 */
.child-footer-copyright {
    font-size: 0.82rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.child-footer-copyright a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.child-footer-copyright a:hover {
    color: #764ba2;
    text-decoration: underline;
}

[data-bs-theme="dark"] .child-footer-copyright {
    color: #adb5bd;
}

[data-bs-theme="dark"] .child-footer-copyright a {
    color: #8b9cf7;
}

[data-bs-theme="dark"] .child-footer-copyright a:hover {
    color: #a78bfa;
}

/* 备案信息行 */
.child-footer-records {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.78rem;
}

/* 备案链接项 */
.child-footer-record-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
}

/* ICP 备案链接 */
.child-ipc-link {
    background: rgba(102, 126, 234, 0.06);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.child-ipc-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* 公安备案链接 */
.child-gongan-link {
    background: rgba(16, 185, 129, 0.06);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.child-gongan-link:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

/* 暗色主题适配 */
[data-bs-theme="dark"] .child-ipc-link {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    color: #8b9cf7;
}

[data-bs-theme="dark"] .child-gongan-link {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* 图标样式 */
.child-footer-record-item i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* 移动端适配 */
@media (max-width: 575.98px) {
    .child-footer-bottom {
        padding: 0.75rem 0 0.25rem;
    }
    .child-footer-copyright {
        font-size: 0.75rem;
    }
    .child-footer-records {
        gap: 0.4rem 0.75rem;
        font-size: 0.72rem;
    }
    .child-footer-record-item {
        padding: 0.2rem 0.6rem;
        font-size: 0.72rem;
    }
}

/* ============================================================
   限时促销/倒计时 样式
   ============================================================ */

/* 促销横幅 */
.child-flash-sale-banner {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
}
.child-sale-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.child-sale-label i {
    animation: child-bolt-flash 1.2s ease-in-out infinite;
}
@keyframes child-bolt-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 倒计时 */
.child-sale-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cd-block {
    background: rgba(255,255,255,0.22);
    border-radius: 8px;
    padding: 6px 10px 4px;
    min-width: 46px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}
.cd-block .cd-num {
    font-size: 1.15rem;
    font-weight: 700;
    display: block;
    letter-spacing: 0.5px;
}
.cd-block .cd-unit {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.85;
    display: block;
    margin-top: 1px;
}
.cd-sep {
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.6;
    margin: 0 1px;
}

/* 促销原价删除线 */
.child-price-original {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.85rem;
}
.child-price-original del {
    color: #999;
    text-decoration: line-through;
}

/* 列表卡片促销角标 */
.child-has-sale {
    position: relative;
}
.child-has-sale::before {
    content: '促销';
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.4;
}

/* 促销移动端适配 */
@media (max-width: 575.98px) {
    .child-flash-sale-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 8px;
    }
    .child-sale-countdown {
        align-self: flex-end;
    }
    .cd-block {
        padding: 4px 7px 3px;
        min-width: 38px;
    }
    .cd-block .cd-num {
        font-size: 0.95rem;
    }
    .cd-block .cd-unit {
        font-size: 0.52rem;
    }
    .cd-sep {
        font-size: 0.85rem;
    }
}

/* ============================================================
   优惠券/折扣码 样式
   ============================================================ */

.child-coupon-input-wrap {
    margin-bottom: 14px;
}
.child-coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.child-coupon-input {
    flex: 1;
    max-width: 220px;
    padding: 8px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: border-color 0.2s;
    outline: none;
    background: #fafafa;
}
.child-coupon-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.child-coupon-apply-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.child-coupon-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.child-coupon-apply-btn:active {
    transform: scale(0.97);
}
.child-coupon-msg {
    margin-top: 6px;
    font-size: 0.82rem;
    min-height: 0;
    transition: all 0.2s;
}
.child-coupon-msg.success {
    color: #059669;
}
.child-coupon-msg.error {
    color: #dc2626;
}
.child-coupon-msg .coupon-discount-tag {
    display: inline-block;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 3px 10px;
    font-weight: 600;
    color: #059669;
}

/* 暗色主题适配 */
[data-bs-theme="dark"] .child-coupon-input {
    background: #1e1e2e;
    border-color: #374151;
    color: #e5e7eb;
}
[data-bs-theme="dark"] .child-coupon-msg .coupon-discount-tag {
    background: rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.3);
}

/* ============================================================
   商品评价/评论 样式
   ============================================================ */

/* 评价摘要 */
.child-review-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: 8px;
    border: 1px solid #fde68a;
}
.child-review-summary-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.child-review-summary-stars i {
    color: #f59e0b;
    font-size: 0.85rem;
}
.child-review-avg {
    font-weight: 700;
    color: #92400e;
    margin-left: 4px;
    font-size: 0.9rem;
}
.child-review-count {
    font-size: 0.82rem;
    color: #92400e;
    opacity: 0.8;
}

/* 评价列表区域 */
.child-review-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.child-review-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.child-review-section h3 i {
    color: #f59e0b;
}

/* 评价项 */
.child-review-item {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.child-review-item:last-child {
    border-bottom: none;
}
.child-review-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.child-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.child-review-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}
.child-review-time {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-left: auto;
}
.child-review-stars-display i {
    color: #f59e0b;
    font-size: 0.75rem;
}
.child-review-content-text {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 4px;
}

/* 评价表单 */
.child-review-form-wrap {
    background: #f9fafb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}
.child-review-form-wrap h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.child-review-star-picker {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.child-review-star-picker i {
    font-size: 1.3rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
}
.child-review-star-picker i.active,
.child-review-star-picker i:hover,
.child-review-star-picker i:hover ~ i {
    color: #f59e0b;
}
/* hover 时所有星变灰，hover 的及之前的变金 */
.child-review-star-picker:hover i {
    color: #d1d5db;
}
.child-review-star-picker i:hover,
.child-review-star-picker i:hover ~ i.prev {
    color: #f59e0b;
}
.child-review-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.88rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.child-review-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.child-review-submit-btn {
    margin-top: 10px;
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.child-review-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.child-review-msg {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* 加载更多评价 */
.child-load-more-reviews {
    text-align: center;
    margin-top: 12px;
}
.child-load-more-reviews button {
    padding: 6px 20px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}
.child-load-more-reviews button:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 订单列表评价按钮 */
.child-review-order-btn {
    padding: 4px 12px;
    border: 1.5px solid #f59e0b;
    border-radius: 6px;
    background: transparent;
    color: #f59e0b;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}
.child-review-order-btn:hover {
    background: #f59e0b;
    color: #fff;
}

/* 暗色主题适配 */
[data-bs-theme="dark"] .child-review-summary {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.2);
}
[data-bs-theme="dark"] .child-review-summary-stars i { color: #fbbf24; }
[data-bs-theme="dark"] .child-review-avg,
[data-bs-theme="dark"] .child-review-count { color: #fbbf24; }
[data-bs-theme="dark"] .child-review-form-wrap {
    background: #1e1e2e;
    border-color: #374151;
}
[data-bs-theme="dark"] .child-review-item {
    border-bottom-color: #374151;
}
[data-bs-theme="dark"] .child-review-user-name { color: #e5e7eb; }
[data-bs-theme="dark"] .child-review-content-text { color: #9ca3af; }
[data-bs-theme="dark"] .child-review-textarea {
    background: #1e1e2e;
    border-color: #374151;
    color: #e5e7eb;
}

/* 移动端适配 */
@media (max-width: 575.98px) {
    .child-review-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .child-review-form-wrap {
        padding: 14px;
    }
    .child-review-star-picker i {
        font-size: 1.1rem;
    }
}

/* ============================================================
 * 套餐卡片促销价样式
 * ============================================================ */
.child-plan-price-sale {
    color: #dc3545;
    font-weight: 700;
}
.child-plan-price-orig {
    font-size: 0.8em;
    color: #9ca3af;
    margin-left: 4px;
    text-decoration: line-through;
}
.child-plan-card.selected .child-plan-price-sale {
    color: #fff;
}
.child-plan-card.selected .child-plan-price-orig {
    color: rgba(255,255,255,0.6);
}
[data-bs-theme="dark"] .child-plan-price-orig {
    color: #6b7280;
}
[data-bs-theme="dark"] .child-plan-card.selected .child-plan-price-orig {
    color: rgba(255,255,255,0.5);
}

/* ============================================================
 * 云盘代下载页面样式
 * ============================================================ */

/* 页面标题 */
.proxy-dl-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bs-primary, #0d6efd);
}
.proxy-dl-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
[data-bs-theme="dark"] .proxy-dl-subtitle {
    color: #9ca3af;
}

/* 步骤指示器 */
.proxy-dl-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}
.proxy-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.proxy-step.active {
    opacity: 1;
}
.proxy-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.proxy-step.active .proxy-step-num {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}
.proxy-step.done .proxy-step-num {
    background: #198754;
    color: #fff;
}
.proxy-step-label {
    font-size: 0.75rem;
    margin-top: 4px;
    color: #6c757d;
    white-space: nowrap;
}
.proxy-step.active .proxy-step-label {
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
}
.proxy-step-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 8px;
    margin-bottom: 20px;
    max-width: 60px;
}
[data-bs-theme="dark"] .proxy-step-num {
    background: #343a40;
    color: #9ca3af;
}
[data-bs-theme="dark"] .proxy-step.active .proxy-step-num {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}
[data-bs-theme="dark"] .proxy-step-line {
    background: #495057;
}

/* 主卡片 */
.proxy-dl-card {
    background: var(--bs-body-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}
[data-bs-theme="dark"] .proxy-dl-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* 面板切换 */
.proxy-dl-panel {
    display: none;
}
.proxy-dl-panel.active {
    display: block;
    animation: proxyFadeIn 0.4s ease;
}
@keyframes proxyFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 面板内容区 */
.proxy-dl-body {
    padding: 1.5rem 1.5rem 1rem;
}
.proxy-dl-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
[data-bs-theme="dark"] .proxy-dl-footer {
    border-top-color: #343a40;
}

/* 预估结果框 */
.proxy-estimate-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}
[data-bs-theme="dark"] .proxy-estimate-box {
    background: #2b3035;
}
.proxy-est-filename {
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
}
.proxy-est-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}
.proxy-est-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    white-space: nowrap;
}

/* 订单确认表格 */
.proxy-order-table td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}
.proxy-order-total-row {
    border-top: 2px solid #f0f0f0;
}
[data-bs-theme="dark"] .proxy-order-total-row {
    border-top-color: #495057;
}
.proxy-order-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #dc3545;
}
.proxy-order-url {
    font-size: 0.8rem;
    word-break: break-all;
}
.proxy-order-notice {
    background: #fff3cd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #664d03;
    margin-top: 0.5rem;
}
[data-bs-theme="dark"] .proxy-order-notice {
    background: rgba(255,193,7,0.1);
    color: #ffc107;
}

/* 加载动画 */
.proxy-spinner-wrap {
    display: flex;
    justify-content: center;
}
.proxy-spinner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: proxyPulse 1.5s ease-in-out infinite;
}
.proxy-spinner i {
    font-size: 1.8rem;
    color: #fff;
}
@keyframes proxyPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
.proxy-progress {
    max-width: 300px;
    margin: 1rem auto 0;
    border-radius: 4px;
}
.proxy-task-id {
    color: #9ca3af;
}

/* 成功/失败图标 */
.proxy-success-icon {
    font-size: 4rem;
    color: #198754;
    animation: proxyBounceIn 0.6s ease;
}
.proxy-fail-icon {
    font-size: 4rem;
    color: #dc3545;
    animation: proxyBounceIn 0.6s ease;
}
@keyframes proxyBounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* 下载按钮组 */
.proxy-dl-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.proxy-dl-btn {
    min-width: 240px;
}

/* 免责声明 */
.proxy-dl-disclaimer {
    margin-top: 0.5rem !important;
    background: var(--bs-body-bg, #fff);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #ffc107;
}
[data-bs-theme="dark"] .proxy-dl-disclaimer {
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.proxy-dl-disclaimer h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.proxy-disclaimer-body p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.proxy-disclaimer-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.75rem;
}
.proxy-disclaimer-body li {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
}
.proxy-disclaimer-body li::before {
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #ffc107;
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    top: 0.35rem;
}
[data-bs-theme="dark"] .proxy-disclaimer-body li {
    color: #9ca3af;
}

.proxy-dl-help {
    margin-top: 0.5rem !important;
    background: var(--bs-body-bg, #fff);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
[data-bs-theme="dark"] .proxy-dl-help {
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.proxy-dl-help h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.proxy-dl-help ol {
    padding-left: 1.25rem;
}
.proxy-dl-help li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #6c757d;
}
[data-bs-theme="dark"] .proxy-dl-help li {
    color: #9ca3af;
}

/* 代下载页面容器底部间距收紧 */
.page-template-page-templates-proxy-download .container {
    padding-bottom: 0.5rem !important;
}
/* 父主题内容区最小高度导致底部大片空白，代下载页面不需要 */
.page-template-page-templates-proxy-download .site-content,
.page-template-page-templates-proxy-download .content-area,
.page-template-page-templates-proxy-download main {
    min-height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* 强制收紧代下载页面底部所有可能的空白来源 */
.page-template-page-templates-proxy-download body {
    min-height: auto !important;
}
.page-template-page-templates-proxy-download .site-footer {
    margin-top: 0.5rem !important;
}
/* 修复：父主题覆盖 Bootstrap 默认 .modal{display:none}，导致隐藏模态框仍占布局空间 */
.page-template-page-templates-proxy-download .modal.fade:not(.show) {
    display: none !important;
}

/* ====== 美化提示弹窗 ====== */
.proxy-alert-modal {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1) !important;
    overflow: hidden;
    background: #fff;
}
[data-bs-theme="dark"] .proxy-alert-modal {
    background: #1e2129;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
}
.proxy-alert-modal .modal-body {
    padding: 2.5rem 2rem 2rem !important;
}

/* 图标容器 */
.proxy-alert-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    animation: proxyAlertPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes proxyAlertPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.proxy-alert-icon {
    font-size: 2.5rem;
}

/* 下载限制 - 琥珀/橙色主题 */
.proxy-alert-limit {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.proxy-alert-limit .proxy-alert-icon { color: #d97706; }
.proxy-alert-btn-limit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}
.proxy-alert-btn-limit:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45) !important;
}

/* 链接失效 - 蓝色主题 */
.proxy-alert-expired {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}
.proxy-alert-expired .proxy-alert-icon { color: #2563eb; }
.proxy-alert-btn-expired {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
}
.proxy-alert-btn-expired:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px);
}

/* 文件删除 - 红色主题 */
.proxy-alert-deleted {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}
.proxy-alert-deleted .proxy-alert-icon { color: #dc2626; }
.proxy-alert-btn-deleted {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}
.proxy-alert-btn-deleted:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-1px);
}

/* 信息提示 - 绿色主题 */
.proxy-alert-info {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.proxy-alert-info .proxy-alert-icon { color: #059669; }
.proxy-alert-btn-info {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
.proxy-alert-btn-info:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px);
}

/* 标题和文字 */
.proxy-alert-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1f2937;
    letter-spacing: -0.01em;
}
[data-bs-theme="dark"] .proxy-alert-title {
    color: #f3f4f6;
}
.proxy-alert-msg {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
[data-bs-theme="dark"] .proxy-alert-msg {
    color: #9ca3af;
}

/* 按钮通用样式 */
.proxy-alert-btn {
    padding: 0.65rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    min-width: 140px;
}
.proxy-alert-btn:active {
    transform: translateY(0) !important;
}

/* 额外信息区域（如下载进度等） */
.proxy-alert-extra {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* 下载次数进度条 */
.proxy-dl-progress {
    margin-top: 0.5rem;
}
.proxy-dl-progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
[data-bs-theme="dark"] .proxy-dl-progress-label {
    color: #9ca3af;
}
.proxy-dl-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
[data-bs-theme="dark"] .proxy-dl-progress-bar {
    background: #374151;
}
.proxy-dl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* 响应式 */
@media (max-width: 576px) {
    .proxy-dl-title { font-size: 1.4rem; }
    .proxy-dl-body { padding: 1rem; }
    .proxy-dl-footer { padding: 0.75rem 1rem; flex-wrap: wrap; }
    .proxy-dl-footer .btn { flex: 1; }
    .proxy-step-label { font-size: 0.65rem; }
    .proxy-step-num { width: 30px; height: 30px; font-size: 0.8rem; }
    .proxy-step-line { max-width: 30px; }
    .proxy-dl-btn { min-width: 200px; }
}

/* ============================================================
   SEO 面包屑导航样式
   ============================================================ */
.cse-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    font-size: 13px;
}
.cse-breadcrumb {
    display: flex;
    align-items: center;
}
.cse-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.cse-breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6b7280;
    line-height: 1.4;
}
.cse-breadcrumb-item a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s;
}
.cse-breadcrumb-item a:hover {
    color: #3730a3;
    text-decoration: underline;
}
.cse-breadcrumb-item + .cse-breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    flex-shrink: 0;
}
.cse-breadcrumb-item.active {
    color: #374151;
    font-weight: 500;
}
/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    .cse-breadcrumb-bar {
        background: #1f2937;
        border-bottom-color: #374151;
    }
    .cse-breadcrumb-item a {
        color: #818cf8;
    }
    .cse-breadcrumb-item a:hover {
        color: #a5b4fc;
    }
    .cse-breadcrumb-item.active {
        color: #e5e7eb;
    }
    .cse-breadcrumb-item + .cse-breadcrumb-item::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    }
}
/* 移动端隐藏面包屑 */
@media (max-width: 767px) {
    .cse-breadcrumb-bar {
        display: none;
    }
}
