@charset "utf-8";

body {
    font-family: Microsoft YaHei, Helvetica, Arial, "\5b8b\4f53", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #fbfcfc;
    scroll-behavior: smooth; /* 平滑滚动 */
}

img {
    max-width: 100%
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

header {
    padding: 156px 0 80px;
}

#top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to right, #007BFF, #00BFFF);
    z-index: 1000;
}

#top-bar nav a {
    font-size: 18px; /* 根据需要调整字体大小 */
    font-weight: normal;
}

#top-bar .btn {
    font-size: 16px; /* 根据需要调整按钮字体大小 */
    font-weight: normal;
}

#main {
    margin-top: 100px;
}

@media (max-width: 992px) {
    #top-bar {
        position: relative; /* 移除在中等屏幕下的 fixed 定位 */
    }

    #main {
        margin-top: 0; /* 重置在中等屏幕下的顶部间距 */
    }
}

section {
    padding: 150px 0;
}

.card-header-title {
    max-width: 700px;
}

.card-deck .card {
    min-width: 220px;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.panel {
    display: none;
    margin: 20px 5px 20px;
}

.panel.active {
    display: block;
}

.shadow {
    box-shadow: 0 0 10px #ccc;
    transition: box-shadow 0.3s;
}

.oauth-login-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* 注册页面优化样式 */

.feature-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* 价格卡片样式 */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* 推荐标签 */
.ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #dc3545;
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 价格显示 */
.pricing-price {
    position: relative;
}

/* 脉冲按钮动画 */
.pulse-button {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.pulse-button:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.trust-item {
    padding: 1rem;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
}

/* 渐变背景 */
.bg-gradient-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
}

/* 功能列表样式 */
.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .pricing-card.recommended {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .ribbon {
        display: none;
    }
    
    .trust-section .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* 卡片动画 */
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

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

.oauth-login-btn img {
    max-width: 100%;
}

.hand-pointer {
    cursor: pointer;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%; /* 将border-radius设置为50%实现圆形 */
}

#avatar {
    cursor: pointer;
}

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-bottom-primary {
    border-bottom: 0.25rem solid #4e73df !important;
}

.border-left-secondary {
    border-left: 0.25rem solid #858796 !important;
}

.border-bottom-secondary {
    border-bottom: 0.25rem solid #858796 !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-bottom-success {
    border-bottom: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-bottom-info {
    border-bottom: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-bottom-warning {
    border-bottom: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

.border-bottom-danger {
    border-bottom: 0.25rem solid #e74a3b !important;
}

.border-left-light {
    border-left: 0.25rem solid #f8f9fc !important;
}

.border-bottom-light {
    border-bottom: 0.25rem solid #f8f9fc !important;
}

.border-left-dark {
    border-left: 0.25rem solid #5a5c69 !important;
}

.border-bottom-dark {
    border-bottom: 0.25rem solid #5a5c69 !important;
}

/* 开发者回复和子评论统一样式 */
.bg-light.p-3.rounded,
.child-comment {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bg-light.p-3.rounded:hover,
.child-comment:hover {
    background-color: #f1f3f4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.child-comments {
    margin-top: 12px;
    padding-left: 0;
}

.child-comment .media-body {
    padding: 0;
}

.child-comment .border-left {
    border-left: none !important;
}

/* 减少开发者回复的默认内边距 */
.bg-light.p-3 {
    padding: 12px !important;
}

/* 
扩展的8个徽章颜色样式 - 基于Bootstrap4 
*/

/* 1. 橙色徽章 - 警告/提醒 */
.badge-orange {
    color: #fff;
    background-color: #fd7e14;
}

.badge-orange[href]:hover,
.badge-orange[href]:focus {
    color: #fff;
    background-color: #e8650e;
    text-decoration: none;
}

/* 2. 紫色徽章 - 高级/VIP */
.badge-purple {
    color: #fff;
    background-color: #6f42c1;
}

.badge-purple[href]:hover,
.badge-purple[href]:focus {
    color: #fff;
    background-color: #59359a;
    text-decoration: none;
}

/* 3. 青色徽章 - 信息/通知 */
.badge-cyan {
    color: #fff;
    background-color: #20c997;
}

.badge-cyan[href]:hover,
.badge-cyan[href]:focus {
    color: #fff;
    background-color: #1aa179;
    text-decoration: none;
}

/* 4. 粉色徽章 - 特殊/推荐 */
.badge-pink {
    color: #fff;
    background-color: #e83e8c;
}

.badge-pink[href]:hover,
.badge-pink[href]:focus {
    color: #fff;
    background-color: #d91a72;
    text-decoration: none;
}

/* 5. 浅灰色徽章 - 中性/默认 */
.badge-light-gray {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.badge-light-gray[href]:hover,
.badge-light-gray[href]:focus {
    color: #495057;
    background-color: #e9ecef;
    text-decoration: none;
}

/* 6. 深绿色徽章 - 环保/自然 */
.badge-forest {
    color: #fff;
    background-color: #198754;
}

.badge-forest[href]:hover,
.badge-forest[href]:focus {
    color: #fff;
    background-color: #146c43;
    text-decoration: none;
}

/* 7. 深蓝色徽章 - 稳重/商务 */
.badge-navy {
    color: #fff;
    background-color: #0d47a1;
}

.badge-navy[href]:hover,
.badge-navy[href]:focus {
    color: #fff;
    background-color: #083570;
    text-decoration: none;
}

/* 8. 金色徽章 - 高端/奖励 */
.badge-gold {
    color: #212529;
    background-color: #ffc107;
}

.badge-gold[href]:hover,
.badge-gold[href]:focus {
    color: #212529;
    background-color: #e0a800;
    text-decoration: none;
}

/* 徽章尺寸变体 */
.badge-lg {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.badge-sm {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

/* 徽章动画效果 */
.badge-pulse {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 徽章阴影效果 */
.badge-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.badge-shadow:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* timeline */

.timeline-item {
        transition: all 0.2s ease;
        background: #fff;
    }

.timeline-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comment-content {
    line-height: 1.6;
    word-wrap: break-word;
}

.timeline-list {
    max-width: 100%;
}

/* 子评论样式 - 参考 app_detail.php */
.child-comments {
    margin-left: 0rem;
    margin-top: 1rem;
}

.child-comment {
    border-left: 3px solid #dee2e6;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.child-comment:hover {
    border-left-color: #007bff;
    background-color: #f8f9fa;
}

.child-comment .media-body {
    padding: 0.5rem 0;
}

.child-comment img {
    border: 2px solid #e9ecef;
}

.child-comment .badge {
    font-size: 0.7em;
    margin-left: 0.25rem;
}

.child-comment .text-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

/* 图片样式 */
.comment-att-img {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.comment-att-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

/* 图片上传按钮样式 */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* 图片预览样式 */
#timeline_att_img_preview {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

#timeline_att_img_preview:hover {
    border-color: #007bff;
}

/* 回复表单样式 */
.reply-form {
    padding: 0px;
    margin-top: 10px;
}

.reply-form textarea {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    resize: vertical;
    min-height: 80px;
}

.reply-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

@media (max-width: 768px) {
    .timeline-item {
        margin-bottom: 1rem;
    }

    .timeline-item .col-auto img {
        width: 40px !important;
        height: 40px !important;
    }

    .child-comments {
        margin-left: 0.5rem !important;
    }

    .child-comment img {
        width: 30px !important;
        height: 30px !important;
    }

    .child-comment {
        padding-left: 0.5rem;
    }

    .reply-form {
        padding: 10px;
    }
}