/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tailwind CSS 兼容样式 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-md {
    border-radius: 0.375rem;
}

.bg-white {
    background-color: #fff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

.text-primary {
    color: #3b82f6;
}

.text-accent {
    color: #10b981;
}

.text-amber-500 {
    color: #f59e0b;
}

.text-amber-800 {
    color: #92400e;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-600 {
    color: #4b5563;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.leading-tight {
    line-height: 1.25;
}

.border-l-3 {
    border-left-width: 3px;
}

.border-b {
    border-bottom-width: 1px;
}

.border {
    border-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-amber-100 {
    border-color: #fef3c7;
}

.border-accent {
    border-color: #10b981;
}

.p-5 {
    padding: 1.25rem;
}

.p-4 {
    padding: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-0-5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mt-0-5 {
    margin-top: 0.125rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-center {
    text-align: center;
}

.inline-block {
    display: inline-block;
}

.relative {
    position: relative;
}

.inline-flex {
    display: inline-flex;
}

.rounded-l-md {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.rounded-r-md {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* 移动端适配 */
@media (min-width: 768px) {
    .md-flex-row {
        flex-direction: row;
    }
    
    .md-mt-0 {
        margin-top: 0;
    }
}

body {
    font-family: var(--font-family);
    background-color: #f8f9fa;
    color: var(--dark-color);
    /* line-height: 1.6; */
    cursor: url('img/link.cur'), auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 英雄区域调整 */
    .hero-section {
        padding: 0.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .hero-image {
        font-size: 6rem;
    }
    
    .hero-image i {
        font-size: 6rem !important;
        line-height: 1;
        flex-shrink: 0;
    }
    
    /* 文件列表调整 */
    .file-name {
        font-size: 0.95rem;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .file-name i {
        font-size: 1.25rem;
        margin-right: 0.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .file-name img {
        width: 18px;
        height: 18px;
        margin-right: 0.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .list-group-item {
        padding: 0.75rem 1rem;
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        position: relative;
    }
    
    /* 文件夹和文件备注调整 */
    .file-note {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0.5rem;
        border-radius: 0.2rem;
        background-color: rgba(13, 110, 253, 0.1);
        color: var(--primary-color);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .file-date {
        font-size: 0.7rem; /* 增大字体大小 */
        padding: 0.15rem 0.4rem; /* 增加内边距 */
        margin-left: 0.5rem;
        border-radius: 0.2rem;
        background-color: rgba(139, 221, 238, 0.2);
        color: #161e1a;
        white-space: nowrap;
        flex-shrink: 0;
    }
    

    
    /* 子文件列表修复 */
    .ms-2 {
        margin-left: 1rem !important;
    }
    
    .list-group-item ul {
        width: 100%;
        padding-left: 0;
        list-style: none;
    }
    
    .list-group-item ul li {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
        border-radius: 0;
        margin-bottom: 0.25rem;
        position: relative;
        padding-left: 1.5rem;
    }
    
    .list-group-item ul li .file-name {
        font-size: 0.9rem;
        flex-direction: row;
        align-items: center;
        gap: 0.375rem;
        flex-wrap: nowrap;
    }
    
    .list-group-item ul li .file-name i,
    .list-group-item ul li .file-name img {
        font-size: 1rem;
        width: 16px;
        height: 16px;
        margin-right: 0.375rem;
    }
    
    .list-group-item ul li .file-note,
    .list-group-item ul li .file-date {
        font-size: 0.65rem; /* 增大字体大小 */
        padding: 0.15rem 0.3rem; /* 增加内边距 */
        margin-left: 0.375rem;
    }
    
    /* 留言板调整 */
    .comment-item {
        padding: 0.875rem;
    }
    
    .comment-content {
        font-size: 0.875rem;
    }
    
    .comment-form {
        padding: 0.875rem;
    }
    
    /* 页脚调整 */
    footer .description {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }
    
    /* 导航栏调整 */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.875rem;
        margin: 0 0.125rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* 广告位调整 */
    .ad-placeholder {
        min-height: 80px;
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
    }
    
    /* 按钮调整 */
    .btn {
        font-size: 0.875rem;
        padding: 0.4375rem 0.875rem;
        border-radius: 0.375rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 卡片调整 */
    .card {
        margin-bottom: 0.875rem;
        border-radius: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 表单调整 */
    .form-control, .form-select {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.375rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    /* 标题调整 */
    h2, .h2 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    h3, .h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    /* 文件图标大小调整 */
    .bi-file-earmark, .bi-file-text, .bi-file-image, .bi-file-pdf, .bi-file-word, 
    .bi-file-excel, .bi-file-ppt, .bi-file-zip, .bi-file-music, .bi-file-play {
        font-size: 1.125rem;
    }
    
    /* 文件夹图标大小调整 */
    .folder-icon {
        font-size: 1.375rem;
    }
    
    /* 搜索框调整 */
    .input-group {
        max-width: 250px;
    }
    
    .form-control {
        font-size: 0.875rem;
    }
    
    .btn-outline-secondary {
        font-size: 0.875rem;
    }
    
    /* 留言表单调整 */
    .comment-form .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .comment-form textarea {
        font-size: 0.875rem;
    }
    
    /* 分页控件调整 */
    .pagination {
        margin-top: 1rem;
    }
    
    .page-link {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* 统计信息调整 */
    .comments-stats {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* 返回顶部按钮调整 */
    #backToTop {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    
    /* 添加阴影效果增强层次感 */
    .list-group-item {
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        border: 1px solid rgba(0, 0, 0, 0.125);
        background: linear-gradient(to right, #ffffff, #f8f9fa);
    }
    
    .list-group-item:hover {
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.125);
        background: linear-gradient(to right, #f8f9fa, #e9ecef);
    }
    
    /* 触摸反馈样式 */
    .list-group-item.touch-active {
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.125);
        background: linear-gradient(to right, #e9ecef, #dde0e3);
        transform: scale(0.98);
        transition: all 0.2s ease;
    }
    
    /* 确保容器内容不换行 */
    .hero-image {
        flex-shrink: 0;
        margin-top: -2rem;
        position: relative;
        z-index: 1;
    }
    
    /* 修复子文件缩进问题 */
    .list-group-item > ul {
        margin-left: 0;
        padding-left: 0;
    }
    
    /* 移动端导航栏汉堡菜单优化 */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* 移动端搜索框优化 */
    #searchInput {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* 移动端留言表单优化 */
    #contactType, #contactInfo, #commentContent {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 移动端广告位优化 */
    .ad-placeholder img {
        max-width: 100%;
        height: auto;
    }
    
    /* 移动端文件列表优化 */
    .file-list-section .card-body {
        padding: 0.75rem;
    }
    
    /* 移动端留言列表优化 */
    .comments-section .card-body {
        padding: 0.75rem;
    }
    
    /* 移动端页脚优化 */
    footer .container {
        padding: 0 0.75rem;
    }
    
    /* 移动端统计信息优化 */
    .comments-stats-card {
        padding: 0.75rem;
    }
    
    .stat-item .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-item .stat-label {
        font-size: 0.625rem;
    }
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
    padding: 0.25rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: #ffc107;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 文件列表样式 */
.file-list-section {
    animation: fadeInUp 0.8s ease;
}

.list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    min-height: 2.5rem;
    line-height: 1.4;
    /* 默认背景色 */
    background-color: #ffffff;
}

.list-group-item:first-child {
    border-top: none;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.list-group-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* 文件夹样式 */
.list-group-item.folder-item {
    /* 文件夹不需要特殊背景色，保持默认 */
    background-color: #ffffff;
    /* 移除左侧边框 */
    border-left: none;
}

.list-group-item.folder-item:hover {
    /* 文件夹悬停时使用浅灰色背景 */
    background-color: #f8f9fa;
}

/* 文件样式 */
.list-group-item.file-item {
    /* 文件背景色 */
    background-color: #f1f9ff;
    /* #e3f2fd #f1f9ff */
    /* 移除左侧边框 */
    border-left: none;
}

.list-group-item.file-item:hover {
    background-color: #bbdefb;
}

.file-name {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    width: 100%;
    font-size: 1rem; /* 默认字体大小 */
}

/* 文件夹名称样式 */
.folder-item .file-name {
    font-size: 1.5rem; /* 文件夹字体再大一点点 */
    font-weight: 500; /* 保持默认字重 */
    color: var(--dark-color); /* 保持默认字体颜色 */
}

/* 文件名称样式 */
.file-item .file-name {
    font-size: 1.3rem; /* 文件字体大小调整 */
    font-weight: 400;
    color: #34353d;
}

.file-name i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.file-name:hover {
    color: var(--primary-color);
}

.file-note {
    margin-left: 0.5rem;
    color: var(--success-color);
    font-size: 0.875rem;
    background-color: #d1e7dd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.file-date {
    margin-left: 0.5rem;
    color: #161e1a;
    font-size: 0.75rem;
    white-space: nowrap;
    background-color: #8bddee;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-style: italic;
}

/* 新增项目提醒样式 */
.new-item {
    color: #dc3545 !important; /* 红色 */
    font-weight: bold !important;
}

/* 留言板样式 */
.comments-section {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.comments-container {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.message-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.message-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.comment-item {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.comment-item.border-amber-100 {
    border: 1px solid #fef3c7;
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #6c757d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.comment-item:hover::before {
    transform: scaleX(1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.comment-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.comment-name::before {
    content: '\f007'; /* Bootstrap person icon */
    font-family: 'bootstrap-icons';
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.comment-date {
    font-style: italic;
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: auto; /* 将时间推到右侧 */
    text-align: right; /* 文字右对齐 */
}

.comment-content {
    line-height: 1.6;
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.comment-content em {
    color: #a5a5a5;
    font-weight: 500;
    font-style: italic;
}

.admin-reply {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    border-left: 3px solid #10b981;
    position: relative;
}

.admin-reply strong {
    color: #047857;
    margin-right: 0.5rem;
}

/* 留言统计卡片 */
.comments-stats-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.comments-stats-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.comments-stats-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

.comments-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.stat-item .stat-value.primary {
    color: #3b82f6;
}

.stat-item .stat-value.accent {
    color: #10b981;
}

.stat-item .stat-value.amber {
    color: #f59e0b;
}

/* 留言统计信息（旧版） */
.comments-stats-old {
    background-color: #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.comments-stats-old strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 留言表单样式 */
.comment-form {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    border: 1px solid #e9ecef;
}

.comment-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.comment-form h3::before {
    content: '\f4ad'; /* Bootstrap pencil-square icon */
    font-family: 'bootstrap-icons';
    margin-right: 0.5rem;
}

.comment-form .form-control:focus,
.comment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.comment-form .form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.comment-form .form-control,
.comment-form .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus,
.comment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#submitCommentBtn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

#submitCommentBtn:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#submitCommentBtn:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* 留言状态样式 */
.comment-status {
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.comment-status.success {
    background-color: #d1e7dd;
    color: var(--success-color);
    border: 1px solid #badbcc;
}

.comment-status.error {
    background-color: #f8d7da;
    color: var(--danger-color);
    border: 1px solid #f5c6cb;
}

.comment-status.info {
    background-color: #cff4fc;
    color: var(--info-color);
    border: 1px solid #b6effb;
}

/* 留言表单样式 */
.comment-form {
    height: 100%;
}

.comment-form .form-control:focus,
.comment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 新增留言项样式 - 用于首页留言显示 */
.comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.comment-item-user {
    display: flex;
    align-items: center;
}

.comment-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.comment-item-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.comment-item-contact {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
}

.comment-item-contact i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.comment-item-date {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
}

.comment-item-content {
    line-height: 1.5;
    color: var(--dark-color);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.comment-item-pending-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background-color: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

.comment-item-reply {
    background-color: #f1f9ff;
 
    border-radius: 0.375rem;
    /* border-left: 3px solid #10b981; */
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.comment-item-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.comment-item-reply-title {
    font-weight: 500;
    color: #10b981;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.comment-item-reply-title i {
    margin-right: 0.25rem;
}

.comment-item-reply-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.comment-item-reply-content {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 分页控件样式 */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: #ffffff;
    border-color: #dee2e6;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.pagination .page-item.disabled .page-link {
    color: var(--secondary-color);
}

/* 页脚样式 */
footer {
    margin-top: 3rem;
}

footer .description {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* 返回顶部按钮 */
#backToTop {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* 留言状态样式 */
.comment-status {
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    font-weight: 500;
}

.comment-status.success {
    background-color: #d1e7dd;
    color: var(--success-color);
    border: 1px solid #badbcc;
}

.comment-status.error {
    background-color: #f8d7da;
    color: var(--danger-color);
    border: 1px solid #f5c6cb;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 搜索框样式 */
#searchInput {
    border-radius: 0.375rem 0 0 0.375rem;
}

#searchBtn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* 搜索关键词高亮样式 */
.search-highlight {
    background-color: #ffeb3b;
    color: #000;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.5);
    transition: all 0.2s ease;
}

.search-highlight:hover {
    background-color: #fdd835;
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.7);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 动画效果 */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* 文件夹和文件图标 */
.folder-icon {
    color: #ffc107;
}

.file-icon {
    color: #0d6efd;
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* 按钮悬停效果 */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 表单元素样式 */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 广告位样式 */
.ad-placeholder {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed #dee2e6;
    transition: all 0.3s ease;
    overflow: hidden;  /* 确保图片不会溢出容器 */
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.ad-placeholder:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.ad-placeholder img {
    width: 100%;  /* 图片宽度占满容器 */
    height: 100%;  /* 图片高度占满容器 */
    object-fit: cover;  /* 保持图片比例并覆盖整个容器 */
    display: block;  /* 移除图片下方的间隙 */
}

.ad-placeholder {
    position: relative;  /* 为绝对定位的子元素提供参考 */
    overflow: hidden;  /* 隐藏超出容器的部分 */
}

.ad-placeholder .ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 管理员回复样式 - 与 ly.html 保持一致 */
.admin-reply {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f0fdf4; /* 浅绿色背景 */
    border-radius: 0.375rem;
    border-left: 3px solid #10b981;
    display: block !important; /* 确保始终显示 */
}

.admin-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.admin-reply-title {
    font-weight: 500;
    color: #10b981;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.admin-reply-title i {
    margin-right: 0.25rem;
}

.admin-reply-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.admin-reply-content {
    color: #4b5563;
    font-size: 0.75rem;
    line-height: 1.25;
}

/* 新增 ly.html 中的样式类 */
.bg-gray-50 {
    background-color: #f9fafb;
}

.rounded {
    border-radius: 0.375rem;
}

.p-3 {
    padding: 0.75rem;
}

.border-l-3 {
    border-left-width: 3px;
}

.border-accent {
    border-color: #10b981;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-md {
    border-radius: 0.375rem;
}

.bg-white {
    background-color: #fff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

.text-primary {
    color: #3b82f6;
}

.text-accent {
    color: #10b981;
}

.text-amber-500 {
    color: #f59e0b;
}

.text-amber-800 {
    color: #92400e;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-600 {
    color: #4b5563;
}

.text-sm {
    font-size: 1rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 1rem;
    line-height: 1rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.leading-tight {
    line-height: 1.25;
}

.border-l-3 {
    border-left-width: 3px;
}

.border-b {
    border-bottom-width: 1px;
}

.border {
    border-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-amber-100 {
    border-color: #fef3c7;
}

.border-accent {
    border-color: #10b981;
}

.p-5 {
    padding: 1.25rem;
}

.p-4 {
    padding: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-0-5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mt-0-5 {
    margin-top: 0.125rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-center {
    text-align: center;
}

.inline-block {
    display: inline-block;
}

.relative {
    position: relative;
}

.inline-flex {
    display: inline-flex;
}

.rounded-l-md {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.rounded-r-md {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* 移动端适配 */
@media (min-width: 768px) {
    .md-flex-row {
        flex-direction: row;
    }
    
    .md-mt-0 {
        margin-top: 0;
    }
}

/* 分割线样式 */
.divider-line {
    border-top: 1px dashed #ccc;
    margin: 5px 0;
    color: #666;
    font-size: 0.8rem;
    padding: 5px 0;
}

/* 文件日期样式 */
.file-date {
    margin-left: 0.5rem;
    color: #161e1a;
    font-size: 0.75rem;
    white-space: nowrap;
    background-color: #8bddee;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-style: italic;
}

/* 消息阴影和悬停效果 */
.message-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.message-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* 联系方式图标样式 */
.contact-icon i {
    color: var(--primary-color);
}

.input-group .bi-qq {
    color: #12B7F5;
}

.input-group .bi-weixin {
    color: #07C160;
}

.input-group .bi-envelope {
    color: #6c757d;
}
