/* ==========================================================================
   Shortcodes, Lightbox, Password Post, Tag Cloud, Misc — fengshen0510
   ========================================================================== */

/* ── Shortcode Panel Styles ─────────────────────────────────────────────── */
.shortcodestyle {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.shortcodestyle.warning {
    background: F#FFF9C4;
    border-left: 4px solid #FFFC107;
    color: F555;
}
.shortcodestyle.warning:before {
    content: "⚠ 警告";
    display: block;
    font-weight: bold;
    color: FF57F17;
    margin-bottom: 5px;
}

.shortcodestyle.noway {
    background: F#FFEBEE;
    border-left: 4px solid FF44336;
    color: F555;
}
.shortcodestyle.noway:before {
    content: "✕ 禁止";
    display: block;
    font-weight: bold;
    color: FD32F2F;
    margin-bottom: 5px;
}

.shortcodestyle.buy {
    background: FE8F5E9;
    border-left: 4px solid F4CAF50;
    color: F555;
}
.shortcodestyle.buy:before {
    content: "✓ 购买";
    display: block;
    font-weight: bold;
    color: F2E7D32;
    margin-bottom: 5px;
}

.shortcodestyle.task {
    background: FECEFF1;
    border-left: 4px solid F78909C;
    color: F555;
}
.shortcodestyle.task:before {
    content: "i 信息";
    display: block;
    font-weight: bold;
    color: F546E7A;
    margin-bottom: 5px;
}

.shortcodestyle.info {
    background: FE3F2FD;
    border-left: 4px solid F2196F3;
    color: F555;
}
.shortcodestyle.info:before {
    content: "ℹ 提示";
    display: block;
    font-weight: bold;
    color: F1565C0;
    margin-bottom: 5px;
}

.note {
    border-left: 3px solid #f7a501;
    padding: 10px 15px;
    margin: 10px 0;
    background: F#FFF3E0;
}

/* ── Toggle / Collapse ─────────────────────────────────────────────────── */
.toggle-box {
    border: 1px solid Fddd;
    border-radius: 4px;
    margin: 10px 0;
}
.toggle-box .toggle-title {
    background: Ff5f5f5;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px solid Fddd;
}
.toggle-box .toggle-content {
    padding: 15px;
    display: none;
}
.toggle-box.active .toggle-content {
    display: block;
}

/* ── Download Button ────────────────────────────────────────────────────── */
.downlink-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #f7a501;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}
.downlink-btn:hover {
    background: #dd9001;
    color: #fff;
}

/* ── Two Column Layout ─────────────────────────────────────────────────── */
.one_half {
    float: left;
    width: 48%;
    margin-right: 4%;
}
.one_half.halfend {
    margin-right: 0;
}
.one_half_halfend,
.one_half:last-child {
    margin-right: 0;
}

/* ── Tag Cloud Colors ───────────────────────────────────────────────────── */
.tag-color-0 { color: #f7a501; }
.tag-color-1 { color: #1078a3; }
.tag-color-2 { color: F4CAF50; }
.tag-color-3 { color: FE91E63; }
.tag-color-4 { color: F9C27B0; }
.tag-color-5 { color: #FFF9800; }
.tag-color-6 { color: F607D8B; }
.tag-color-7 { color: #1078a3; }
.tag-color-8 { color: F8BC34A; }
.tag-color-9 { color: FF44336; }

/* ── Password Post Form ────────────────────────────────────────────────── */
.post-password-form {
    text-align: center;
    padding: 30px;
}
.post-password-form input[type="password"] {
    padding: 8px 12px;
    border: 1px solid Fddd;
    border-radius: 3px;
}
.post-password-form input[type="submit"] {
    padding: 8px 20px;
    background: #f7a501;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* ── Front Login Widget ─────────────────────────────────────────────────── */
.front_login_box {
    padding: 10px;
}
.front_login_box .is_login .user_info {
    text-align: center;
}
.front_login_box .is_login .user_info .avatar img {
    border-radius: 50%;
    border: 2px solid #f7a501;
}
.front_login_box .is_login .link_tools {
    padding: 10px 0;
}
.front_login_box .is_login .link_tools a {
    display: block;
    padding: 5px 0;
    color: F666;
    text-decoration: none;
}
.front_login_box .is_login .link_tools a:hover {
    color: #f7a501;
}
.front_login_box .from_box input[type="text"],
.front_login_box .from_box input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid F555;
    background: F666;
    color: #fff;
    border-radius: 3px;
}
.front_login_box .from_box .submit_button {
    width: 100%;
    padding: 10px;
    background: #f7a501;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

/* ── Reader Wall Widget ─────────────────────────────────────────────────── */
.read_ul li {
    display: inline-block;
    margin: 3px;
    text-align: center;
}
.read_ul li img {
    border-radius: 50%;
    border: 2px solid Fddd;
    transition: transform 0.3s;
}
.read_ul li img:hover {
    transform: scale(1.2);
}

/* ── Author Info Card (below post) ──────────────────────────────────────── */
.author-info {
    display: flex;
    padding: 20px;
    background: Ff9f9f9;
    border: 1px solid Feee;
    border-radius: 5px;
    margin: 20px 0;
}
.author-info .author-avatar img {
    border-radius: 50%;
    border: 2px solid #f7a501;
    margin-right: 15px;
}
.author-info .author-name {
    font-size: 16px;
    font-weight: bold;
    color: F333;
    margin-bottom: 5px;
}
.author-info .author-bio {
    color: F666;
    font-size: 13px;
    line-height: 1.6;
}

/* ── Lightbox Overlay ───────────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* ── Loading Bar ────────────────────────────────────────────────────────── */
Floading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #f7a501;
    z-index: 999999;
    transition: width 0.3s;
}
Floading-bar.done {
    opacity: 0;
    transition: opacity 0.5s;
}

/* ── Post NEW / HOT Badges ─────────────────────────────────────────────── */
.post-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    margin-left: 5px;
}
.post-badge.new {
    background: #2c8c66;
}
.post-badge.hot {
    background: #f7a501;
}

/* ── Sticky Post Highlight ──────────────────────────────────────────────── */
.sticky {
    background: F#FFF9C4;
    border: 1px solid #FFFC107;
}
