/**
 * PHP轻论坛 v3.0 样式表
 */

/* 全局样式 */
body {
    background-color: #f8f9fa;
    color: #333;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* 主题列表 */
.topic-item {
    transition: background-color 0.2s;
}

.topic-item:hover {
    background-color: #f8f9fa;
}

/* 回复内容 */
.topic-content, .post-content {
    line-height: 1.6;
    word-break: break-word;
}

/* 引用样式 */
blockquote {
    border-left: 3px solid #dee2e6;
    padding-left: 15px;
    color: #6c757d;
    margin: 10px 0;
}

/* 分页导航 */
.pagination {
    justify-content: center;
}

/* 页脚 */
footer {
    margin-top: 30px;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* 用户头像 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 100px;
    height: 100px;
}

/* 徽章 */
.badge {
    font-weight: normal;
}

/* 搜索高亮 */
mark {
    padding: 0;
    background-color: #fff3cd;
}

/* 底部导航栏 (App Bottom Navigation) */
.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom); /* 适配刘海屏 */
}

.app-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
}

.app-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s;
    height: 100%;
}

.app-bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.app-bottom-nav-item.active {
    color: #0d6efd;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .hide-on-mobile {
        display: none;
    }
    
    /* 手机端显示底部导航，隐藏传统页脚，并为主内容区腾出底部空间 */
    .app-bottom-nav {
        display: block;
    }
    .footer {
        display: none;
    }
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }
}
.topic-sticky {
    background-color: #f8f9fa;
}

.topic-locked {
    opacity: 0.8;
}

/* 表单样式 */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* 管理员标记 */
.admin-badge {
    color: #dc3545;
}

.moderator-badge {
    color: #fd7e14;
}

/* 回复框 */
#reply-form {
    position: relative;
}

#reply-to-info {
    margin-bottom: 15px;
}

/* 加载动画 */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 300px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.table-responsive table {
    min-width: 760px;
}

.app-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.app-kpi {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 1rem;
}

.mobile-stack {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.touch-btn {
    min-height: 44px;
}

@media (max-width: 991.98px) {
    .app-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .app-card-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card {
        border-radius: 12px;
    }

    .table-responsive table {
        min-width: 640px;
    }

    .mobile-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .btn, .form-control, .form-select {
        min-height: 42px;
    }
}

/* 专业极简风 (Pro UI) - 蓝白主色调、高效结构 */
.pro-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pro-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.pro-hero p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 0;
}
.pro-hero-icon {
    font-size: 4rem;
    opacity: 0.15;
    line-height: 1;
}

.pro-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pro-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.pro-card-header {
    background: transparent;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pro-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1d20;
    margin: 0;
    display: flex;
    align-items: center;
}
.pro-card-title i {
    color: #0d6efd;
    margin-right: 0.5rem;
}
.pro-card-body {
    padding: 1.5rem;
}

.pro-stat-item {
    padding: 1.25rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.03);
    transition: background 0.2s;
}
.pro-stat-item:hover {
    background: #f1f3f5;
}
.pro-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1.2;
}
.pro-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pro-list-item {
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.pro-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.pro-list-item:first-child {
    padding-top: 0;
}

.pro-msg-card {
    display: flex;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.pro-msg-card.unread {
    background: #f8fbff;
    border-color: #cce0ff;
}
.pro-msg-card.unread::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #0d6efd;
}
.pro-msg-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f1f3f5;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}
.pro-msg-card.unread .pro-msg-icon {
    background: #e7f1ff;
    color: #0d6efd;
}
.pro-msg-content {
    flex-grow: 1;
}
.pro-msg-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}
.pro-msg-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.pro-msg-meta {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* profile.php 专属高级 UI 样式 (已废弃，替换为 Pro UI) */
/* 保留必要结构样式，移除旧版紫色/毛玻璃 */
.profile-avatar-large {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.profile-stat-box {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(5px);
}
.profile-stat-box .num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.profile-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.profile-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #0d6efd;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.profile-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.profile-nav-icon.icon-blue { background: #e7f1ff; color: #0d6efd; }
.profile-nav-icon.icon-purple { background: #f3e8ff; color: #6f42c1; }
.profile-nav-icon.icon-green { background: #d1e7dd; color: #198754; }
.profile-nav-icon.icon-orange { background: #ffe5d0; color: #fd7e14; }

.profile-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.2s;
}
.profile-list-item:last-child {
    border-bottom: none;
}
.profile-list-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
}
.profile-list-item i {
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .pro-hero {
        border-radius: 0 0 20px 20px;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 2rem 1.25rem;
    }
    .pro-msg-card {
        padding: 1rem;
    }
    .pro-msg-icon {
        width: 40px; height: 40px;
        font-size: 1.1rem;
        margin-right: 1rem;
    }
}
