/*
Theme Name: RiPro-V5 Child
Theme URI: https://ritheme.com/
Description: RiPro-V5 仿 www.villagepeaceschool.com/user 样式的子主题
Author: Sisyphus
Author URI: https://ritheme.com/
Template: ripro-v5
Version: 1.0.0
*/

body {
    background-color: #f5f6fa;
}

/* 顶部横幅 Banner */
.uc-top-banner {
    background: url('../ripro-v5/assets/img/bg.png') no-repeat center center;
    background-size: cover;
    height: 180px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.uc-top-banner .avatar-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.8);
    margin-right: 20px;
}

.uc-top-banner .user-info {
    flex: 1;
}

.uc-top-banner .user-info h3 {
    margin: 0 0 5px;
    font-size: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uc-top-banner .user-info h3 .badge {
    font-size: 12px;
    font-weight: normal;
    padding: 3px 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    color: #0dcaf0; /* badge color similar to screenshot */
    border: 1px solid #0dcaf0;
}

.uc-top-banner .user-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.uc-top-banner .btn-logout {
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.uc-top-banner .btn-logout:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* 侧边栏及主内容卡片通用样式 */
.uc-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    overflow: hidden;
}

.uc-card-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #f9f9f9;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.uc-card-body {
    padding: 20px;
}

/* 侧边栏钱包样式 */
.uc-wallet {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding-bottom: 15px;
}

.uc-wallet .item .val {
    font-size: 18px;
    font-weight: bold;
    color: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.uc-wallet .item:nth-child(2) .val { color: #5b79fc; }
.uc-wallet .item .label { font-size: 12px; color: #888; margin-top: 5px; }

.btn-checkin {
    width: 100%;
    background: #7bd4eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 0;
    font-size: 14px;
}
.btn-checkin:hover { background: #61bpd3; }

/* 侧边栏菜单 */
.uc-menu-title {
    font-size: 14px;
    color: #666;
    margin: 15px 0 10px 15px;
    font-weight: bold;
}
.uc-menu-list {
    list-style: none;
    padding: 0 10px;
    margin: 0 0 15px 0;
}
.uc-menu-list li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
}
.uc-menu-list li a i { width: 20px; margin-right: 10px; color: #777; text-align: center;}
.uc-menu-list li.active a, .uc-menu-list li a:hover {
    background-color: #f4f8fb;
    color: #2163e8;
}
.uc-menu-list li.active a i, .uc-menu-list li a:hover i { color: #2163e8; }

/* 充值卡片样式 */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.coin-card {
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bg-yellow { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.bg-blue { background: linear-gradient(135deg, #5b79fc 0%, #8b9dff 100%); }
.bg-red { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.coin-card h4 { margin: 0; font-size: 20px; font-weight: bold; color: #fff; }
.coin-card p { margin: 5px 0 0; font-size: 12px; opacity: 0.9; }
.coin-card .icon-bg {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* 充值选项 */
.recharge-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.recharge-item {
    border: 2px solid #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}
.recharge-item:hover, .recharge-item.active { border-color: #f39c12; }
.recharge-item h5 { color: #f39c12; font-size: 16px; margin: 0 0 5px; font-weight: bold; }
.recharge-item p { color: #888; margin: 0; font-size: 14px; }
.recharge-item.active::before {
    content: '\f058'; /* fa-check-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute; top: 5px; left: 8px; color: #f39c12; font-size: 14px;
}

.recharge-pay-box {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px dashed #eee; margin-top: 20px;
}
.recharge-pay-box .amount { font-size: 16px; color: #333; }
.recharge-pay-box .amount span { color: #ff4757; font-weight: bold; font-size: 20px; }
.btn-pay { background: #364150; color: #fff; padding: 10px 25px; border-radius: 6px; border: none; font-size: 14px; }
.btn-pay:hover { background: #2b3440; }

/* 表单输入框 */
.uc-input {
    width: 100%; padding: 10px 15px; border: 1px solid #f0f0f0;
    background-color: #fbfbfb; border-radius: 6px; font-size: 14px;
}
.uc-input:focus { background-color: #fff; border-color: #2163e8; outline: none; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; color: #333; }
.btn-save { float: right; background: #364150; color: #fff; padding: 10px 25px; border: none; border-radius: 6px; }

/* Fixes for Grid */
.recharge-custom {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.recharge-custom input {
    border: none;
    text-align: left;
    font-size: 14px;
    outline: none;
    width: 100%;
    background: transparent;
}
.recharge-custom input::placeholder {
    color: #999;
}

/* 下载统计块 (Image 4) */
.down-stats-grid .stat-box {
    border-radius: 8px;
    color: #fff;
}
.down-stats-grid .bg-blue { background-color: #5171f5 !important; }
.down-stats-grid .bg-cyan { background-color: #21b8d6 !important; }
.down-stats-grid .bg-red { background-color: #ff5757 !important; }
.down-stats-grid .bg-green { background-color: #16c964 !important; }
.down-stats-grid .val { font-size: 28px; font-weight: bold; }

/* 会员资源卡片 (Image 3) */
.vip-grid {
    display: flex;
    flex-wrap: wrap;
}
/* 会员卡片选中态 — 彩色左边框，简洁无图标 */
.vip-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.vip-card:hover {
    transform: translateY(-2px);
}

/* 强制重写输入框验证码组合 */
.input-group > .form-control {
    border-right: 0 !important;
}
.input-group > .input-group-text {
    border-left: 0 !important;
}

/* Additional overrides for form elements matching Image 1 */
.form-control.rounded-0 {
    border-radius: 0 !important;
}
.btn-outline-dark.border-2 {
    border-width: 2px !important;
}

/* VIP 资源包卡片细节调整 */
.vip-card .card-inner h4 {
    letter-spacing: 1px;
}
.vip-card .card-inner .price-display span {
    font-family: Arial, Helvetica, sans-serif;
}

/* Elegant Outline Buttons (ui-ux-pro-max guidelines) */
.btn-elegant-dark {
    background-color: #fff;
    color: #334155;
    border: 2px solid #cbd5e1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-elegant-dark:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.btn-elegant-danger {
    background-color: #fff;
    color: #ef4444;
    border: 1px solid #fca5a5;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-elegant-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    transform: translateY(-1px);
}

.btn-elegant-primary {
    background-color: #fff;
    color: #6366f1;
    border: 1px solid #a5b4fc;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-elegant-primary:hover {
    background-color: #eef2ff;
    color: #4f46e5;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}


/* ============================================================
   侧边栏"猜你喜欢"随机文章列表样式
   ============================================================ */

/* 隐藏 WP 默认近期文章 / 近期评论（双重保险，万一后台还有旧 widget 数据） */
.widget_recent_entries,
.widget_recent_comments {
    display: none !important;
}

/* Widget 标题 */
.child-widget-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    border-left: 3px solid #6366f1;
    padding-left: 10px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 列表容器：纵向排列，每项之间留间距 */
.child-random-posts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 单条文章 —— 独立卡片，带边框 + 圆角 + 轻阴影 */
.child-rp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e8ecf2;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.child-rp-item:hover {
    text-decoration: none;
    border-color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}
.child-rp-item:hover .child-rp-title {
    color: #6366f1;
}

/* 缩略图容器 */
.child-rp-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 64px;
    border-radius: 7px;
    overflow: hidden;
    background: #e2e8f0;
}

/* 缩略图本体（lazy-load 背景图模式） */
.child-rp-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.32s ease;
}
.child-rp-item:hover .child-rp-img {
    transform: scale(1.07);
}

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

/* 文章标题：最多显示 2 行，超出省略 */
.child-rp-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    transition: color 0.18s;
}
