* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', Arial, sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0; }

header { background: #e4f7e37b; box-shadow: 0 2px 15px rgba(0,0,0,0.1); position: relative; }
.header-top { height: 80px; display: flex; align-items: center; padding: 0; }
.header-top .container { width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { flex: 0 0 auto; }
.logo img { height: 70px; width: auto; object-fit: contain; }
.main-nav { flex: 0 0 auto; }
.menu { list-style: none; }
.menu > li { display: inline-block; position: relative; margin-left: 25px; }
.menu > li:first-child { margin-left: 0; }
.menu > li > a { text-decoration: none; color: #333; font-weight: 500; padding: 10px 15px; display: flex; align-items: center; transition: color 0.3s; }
.menu > li > a:hover { color: #4CAF50; }
.menu > li > a .arrow { margin-left: 6px; font-size: 12px; color: #999; transition: transform 0.3s; }
.menu > li > a:hover .arrow { color: #4CAF50; }
.menu > li:hover > a .arrow { transform: rotate(90deg); color: #4CAF50; }
.submenu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #eee; border-top: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: none; z-index: 100; min-width: 150px; list-style: none; padding: 0; margin: 0; }
.submenu li { padding: 12px 20px; white-space: nowrap; border-bottom: 1px solid #f5f5f5; list-style: none; }
.submenu li:last-child { border-bottom: none; }
.submenu li a { text-decoration: none; color: #555; display: block; transition: color 0.3s; }
.submenu li:hover { background: #f8f9fa; }
.submenu li:hover a { color: #4CAF50; }
.menu > li:hover .submenu { display: block; }

.slider { position: relative; width: 1200px; height: 500px; overflow: hidden; margin: 0 auto; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-info { position: absolute; bottom: 30px; left: 30px; background: rgba(0,0,0,0.6); padding: 20px; color: #fff; }
.slider-nav { position: absolute; bottom: 20px; right: 30px; }
.slider-nav button { width: 15px; height: 15px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); margin: 0 5px; cursor: pointer; }
.slider-nav button.active { background: #4CAF50; }

.content { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: #333; margin-bottom: 10px; }
.section-title .line { width: 60px; height: 3px; background: #4CAF50; margin: 0 auto; }

.category-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; justify-content: center; }
.category-tabs .btn { padding: 10px 24px; border-radius: 25px; transition: all 0.3s; border: 1px solid transparent; background: #f5f5f5; color: #666; text-decoration: none; font-size: 15px; }
.category-tabs .btn:hover { background: #fff; color: #4CAF50; border-color: #4CAF50; }
.category-tabs .btn.active { background: #4CAF50; color: #fff; box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3); }

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-item { background: #fff; border: 1px solid #eee; padding: 20px; transition: all 0.3s; }
.news-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.news-item a { text-decoration: none; display: block; }
.news-item img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 15px; }
.news-item h3 { font-size: 18px; margin-bottom: 10px; color: #333; }
.news-item p { color: #666; font-size: 14px; line-height: 1.6; }
.news-item .date { color: #999; font-size: 12px; margin-top: 10px; }

.team-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; justify-items: center; }
.team-item-link { text-decoration: none; display: block; color: inherit; }
.team-item { background: #fff; border: 1px solid #e0e0e0; padding: 15px; text-align: center; transition: all 0.3s ease; height: 100%; box-sizing: border-box; border-radius: 8px; max-width: 180px; }
.team-item:hover { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.18); transform: translateY(-6px); border-color: #d0d0d0; }
.team-item .photo { width: 130px; height: 180px; margin: 0 auto 12px; border-radius: 4px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.team-item .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-item h3 { font-size: 17px; margin-bottom: 6px; color: #333; font-weight: 500; }
.team-item .title { color: #666; font-size: 14px; }

.direction-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.direction-item-link { text-decoration: none; display: block; color: inherit; }
.direction-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.direction-item:hover { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.18); transform: translateY(-5px); }
.direction-item img { width: 100%; height: 180px; object-fit: cover; }
.direction-item h3 { padding: 15px; margin: 0; font-size: 16px; text-align: center; color: #333; }

.teacher-profile { max-width: 1200px; margin: 0 auto; }
.profile-card { display: flex; gap: 40px; background: linear-gradient(135deg, #e8f4fc 0%, #f0e6fa 100%); padding: 40px; border-radius: 20px; color: #333; box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15); }
.profile-tags .tag-title { background: rgba(76, 175, 80, 0.7); color: #fff; }
.profile-tags .tag-position { background: rgba(33, 150, 243, 0.7); color: #fff; }
.profile-tags .tag-honor { background: rgba(230, 126, 34, 0.7); color: #fff; }
.profile-intro h1 { font-size: 36px; margin-bottom: 15px; color: #333; }
.profile-meta { color: #666; }
.profile-photo { flex-shrink: 0; width: 200px; height: 260px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.profile-intro h1 { font-size: 36px; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.profile-tags .tag { padding: 8px 16px; border-radius: 15px; font-size: 14px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.profile-tags .tag-title { background: rgba(76, 175, 80, 0.8); }
.profile-tags .tag-position { background: rgba(33, 150, 243, 0.8); }
.profile-tags .tag-honor { background: rgba(230, 126, 34, 0.8); }
.profile-meta { display: flex; flex-direction: column; gap: 10px; font-size: 15px; opacity: 0.9; }
.profile-meta .meta-item { display: flex; align-items: center; gap: 8px; }
.profile-section { background: #fff; border-radius: 15px; padding: 30px; margin-top: 25px; box-shadow: 0 5px 30px rgba(0,0,0,0.08); }
.section-header { padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.section-header h2 { font-size: 20px; color: #333; display: flex; align-items: center; gap: 10px; }
.section-header h2::before { content: ''; width: 5px; height: 24px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 3px; }
.section-content { color: #555; line-height: 1.9; font-size: 15px; }
.section-content p { margin: 0; }
.btn-back { display: inline-block; padding: 12px 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; text-decoration: none; border-radius: 25px; transition: all 0.3s; font-size: 15px; }
.btn-back:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); }

footer { background: #333; color: #fff; padding: 40px 0; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 30px; }
.footer-content .footer-links { justify-self: center; }
.footer-content .footer-contact { justify-self: start; }
.footer-content .footer-friendlinks { justify-self: start; }
.footer-links { text-align: center; padding: 15px; }
.footer-contact { text-align: left; padding: 15px; }
.footer-friendlinks { text-align: left; padding: 15px; }
.friend-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.footer-links h4, .footer-contact h4, .footer-friendlinks h4 { margin-bottom: 15px; }
.footer-links ul, .footer-contact p { margin-bottom: 10px; }
.footer-links ul { padding: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #ccc; text-decoration: none; }
.footer-links a:hover { color: #4CAF50; }
.friend-links a { display: inline-block; padding: 6px 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 5px; margin: 6px; text-decoration: none; color: #ccc; font-size: 13px; transition: all 0.3s ease; }
.friend-links a:hover { background: rgba(76, 175, 80, 0.2); border-color: rgba(76, 175, 80, 0.4); color: #4CAF50; }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; color: #999; }
.footer-bottom a { color: inherit; text-decoration: none; }

.about-content, .research-content { max-width: 800px; margin: 0 auto; }
.about-content h3, .research-content h3 { margin: 20px 0 10px; color: #333; }
.about-content p, .research-content p { color: #666; line-height: 1.8; margin-bottom: 15px; }
.about-content img, .research-content img { max-width: 100%; height: auto; margin: 15px 0; }
.about-content pre, .research-content pre { background: #f5f5f5; padding: 15px; border-radius: 4px; overflow-x: auto; margin: 15px 0; }
.about-content code, .research-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-family: 'Consolas', 'Monaco', monospace; }
.about-content pre code, .research-content pre code { background: none; padding: 0; }
.about-content table, .research-content table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.about-content th, .about-content td, .research-content th, .research-content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.about-content th, .research-content th { background: #f5f5f5; font-weight: bold; }
.about-content blockquote, .research-content blockquote { border-left: 4px solid #4CAF50; padding: 10px 15px; margin: 15px 0; background: #f9f9f9; color: #666; }

.about-content ul, .about-content ol,
.research-content ul, .research-content ol,
.section-content ul, .section-content ol {
    padding-left: 2em;
    margin: 1em 0;
}
.about-content ul, .research-content ul, .section-content ul {
    list-style: disc;
}
.about-content ol, .research-content ol, .section-content ol {
    list-style: decimal;
}
.about-content li, .research-content li, .section-content li {
    margin: 0.2em 0;
    padding-left: 0.3em;
}

.news-detail { max-width: 800px; margin: 0 auto; }
.news-detail h1 { font-size: 28px; margin-bottom: 20px; }
.news-detail .meta { color: #999; font-size: 14px; margin-bottom: 30px; }
.news-detail .content { color: #666; line-height: 1.8; }
.news-detail .content img { max-width: 100%; height: auto; }
.news-detail .content ul,
.news-detail .content ol {
    padding-left: 2em;
    margin: 1em 0;
}
.news-detail .content ul {
    list-style: disc;
}
.news-detail .content ol {
    list-style: decimal;
}
.news-detail .content li {
    margin: 0.2em 0;
    padding-left: 0.3em;
}

.recruit-list { max-width: 800px; margin: 0 auto; }
.recruit-item { background: #fff; border: 1px solid #eee; padding: 25px; margin-bottom: 20px; }
.recruit-item h3 { font-size: 20px; margin-bottom: 15px; }
.recruit-item h3 a { text-decoration: none; color: #333; }
.recruit-item .type { display: inline-block; padding: 3px 10px; background: #4CAF50; color: #fff; font-size: 12px; margin-bottom: 10px; }
.recruit-item .summary { color: #666; line-height: 1.6; }

.pagination { text-align: center; margin-top: 30px; }
.pagination a { display: inline-block; padding: 8px 15px; border: 1px solid #ddd; text-decoration: none; color: #333; margin: 0 5px; }
.pagination a.active, .pagination a:hover { background: #4CAF50; color: #fff; border-color: #4CAF50; }

.admin-menu { background: #2c3e50; padding: 20px; }
.admin-menu ul { list-style: none; }
.admin-menu li { margin-bottom: 10px; }
.admin-menu a { color: #fff; text-decoration: none; padding: 10px 15px; display: block; }
.admin-menu a:hover { background: #34495e; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.form-group textarea { height: 150px; }
.btn { padding: 10px 28px; background: #4CAF50; color: #fff; border: none; border-radius: 25px; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 500; transition: all 0.3s; }
.btn:hover { background: #45a049; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35); }
.btn-danger { background: #f44336; }
.btn-danger:hover { background: #d32f2f; }

.category-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.category-tabs .btn { 
    padding: 10px 24px; 
    border-radius: 25px; 
    transition: all 0.3s; 
    border: 1px solid transparent;
}
.category-tabs .btn:hover { 
    background: #fff; 
    color: #4CAF50; 
    border-color: #4CAF50;
}
.category-tabs .btn.active { 
    background: #4CAF50; 
    color: #fff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
.table th { background: #f5f5f5; }
.table tr:hover { background: #f9f9f9; }

.login-form { max-width: 400px; margin: 100px auto; background: #fff; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.login-form h2 { text-align: center; margin-bottom: 30px; }

.clearfix::after { content: ''; display: table; clear: both; }

@media (max-width: 1240px) {
    .container { max-width: 100%; padding: 0 20px; }
    .slider { width: 100%; height: 420px; }
}

@media (max-width: 992px) {
    .container { padding: 0 15px; }
    .header-top { height: auto; padding: 15px 0; flex-direction: column; }
    .header-top .container { width: 100%; flex-direction: column; gap: 15px; }
    .logo img { height: 50px; }
    .menu > li { margin-left: 20px; }
    .slider { height: 360px; }
    .team-list { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .direction-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .news-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .profile-card { flex-direction: column; gap: 25px; text-align: center; }
    .profile-photo { margin: 0 auto; }
}

@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
    .menu > li { margin-left: 0; }
    .menu > li > a { padding: 8px 12px; font-size: 14px; }
    .slider { height: 300px; }
    .team-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .team-item { max-width: 100%; }
    .team-item .photo { width: 110px; height: 150px; }
    .direction-list { grid-template-columns: repeat(2, 1fr); }
    .news-list { grid-template-columns: 1fr; }
    .footer-content { justify-items: start; }
    .footer-links, .footer-contact, .footer-friendlinks { text-align: left; }
    .footer-links { justify-self: start; }
    .footer-friendlinks { justify-self: start; }
    .section-title h2 { font-size: 22px; }
    .profile-card { padding: 25px; }
    .profile-intro h1 { font-size: 28px; }
}

@media (max-width: 576px) {
    .container { padding: 0 10px; }
    .header-top { padding: 12px 0; }
    .logo img { height: 45px; }
    .menu > li > a { padding: 6px 10px; font-size: 13px; }
    .slider { height: 240px; }
    .team-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .team-item .photo { width: 100px; height: 135px; }
    .team-item h3 { font-size: 15px; }
    .direction-list { grid-template-columns: 1fr; }
    .friend-links { gap: 6px; }
    .friend-links a { padding: 5px 10px; font-size: 12px; }
    .profile-photo { width: 160px; height: 210px; }
    .section-content { font-size: 14px; }
    .section-title h2 { font-size: 20px; }
}

.news-detail h1 { font-size: 32px; color: #222; margin-bottom: 15px; line-height: 1.4; }
.news-detail .meta { color: #999; font-size: 15px; margin-bottom: 0px; border-bottom: 1px solid #eee; padding-bottom: 0px; }

.news-detail .content,
.section-content { font-size: 16px; line-height: 1.8; color: #444; }
.news-detail .content p,
.section-content p { margin: 0 0 1.2em 0; padding: 0; }
.news-detail .content h1,
.news-detail .content h2,
.news-detail .content h3,
.news-detail .content h4,
.news-detail .content h5,
.news-detail .content h6,
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 { margin-top: 1.5em; margin-bottom: 0.8em; font-weight: 600; color: #333; line-height: 1.4; }
.news-detail .content h1,
.section-content h1 { font-size: 26px; }
.news-detail .content h2,
.section-content h2 { font-size: 22px; }
.news-detail .content h3,
.section-content h3 { font-size: 19px; }
.news-detail .content h4,
.section-content h4 { font-size: 17px; }
.news-detail .content img,
.section-content img { max-width: 100%; height: auto; margin: 1.5em auto; display: block; border-radius: 6px; }
.news-detail .content ul,
.news-detail .content ol,
.section-content ul,
.section-content ol { margin: 0 0 1.2em 2em; padding: 0; }
.news-detail .content ul li,
.news-detail .content ol li,
.section-content ul li,
.section-content ol li { margin: 0.5em 0; line-height: 1.8; }
.news-detail .content ul { list-style: disc; }
.news-detail .content ol { list-style: decimal; }
.news-detail .content blockquote,
.section-content blockquote { margin: 1.5em 0; padding: 1em 1.5em; background: #f8f9fa; border-left: 4px solid #4CAF50; color: #666; }
.news-detail .content table,
.section-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.news-detail .content th,
.news-detail .content td,
.section-content th,
.section-content td { padding: 12px 15px; border: 1px solid #e0e0e0; text-align: left; }
.news-detail .content th,
.section-content th { background: #f5f5f5; font-weight: 600; }
.news-detail .content pre,
.section-content pre { margin: 1.5em 0; padding: 15px; background: #2d2d2d; color: #f8f8f2; overflow-x: auto; border-radius: 6px; }
.news-detail .content a,
.section-content a { color: #4CAF50; text-decoration: none; }
.news-detail .content a:hover,
.section-content a:hover { text-decoration: underline; }
.news-detail .content br,
.section-content br { line-height: normal; }
.news-detail .content p:empty,
.section-content p:empty { display: none; }

/* 留言板样式 */
.message-form {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
}
.message-form h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}
.message-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.message-form .form-group {
    flex: 1;
}
.message-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.message-form .form-group input,
.message-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.message-form .form-group input:focus,
.message-form .form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
}
.message-form .form-group textarea {
    resize: vertical;
}
.message-form .btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.message-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.message-list {
    margin-top: 20px;
}

.message-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}
.message-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.message-header .avatar {
    margin-right: 15px;
}

.message-header .info {
    flex: 1;
}

.message-header .info .nickname {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-right: 15px;
}

.message-header .info .time {
    font-size: 14px;
    color: #999;
}

.message-content {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
    padding-left: 60px;
}

.comment-list {
    margin-top: 20px;
    padding-left: 60px;
    border-left: 2px solid #f0f0f0;
    padding-left: 25px;
    margin-left: 35px;
}

.comment-item {
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.comment-item .avatar.small {
    width: 35px;
    height: 35px;
    font-size: 14px;
    flex-shrink: 0;
}

.comment-item .comment-body {
    flex: 1;
}

.comment-item .comment-body .nickname {
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

.comment-item .comment-body .time {
    font-size: 12px;
    color: #999;
}

.comment-item .comment-body p {
    margin: 8px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.comment-form {
    margin-top: 20px;
    padding-left: 60px;
}

.comment-form form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.comment-form input:focus {
    border-color: #4CAF50;
    outline: none;
}

.comment-form .btn-sm {
    padding: 10px 20px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form .btn-sm:hover {
    background: #45a049;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 50px 0;
}

.message-list .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.message-list .pagination a {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.message-list .pagination a:hover:not(.disabled) {
    border-color: #4CAF50;
    color: #4CAF50;
}

.message-list .pagination a.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.message-list .pagination a.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* 响应式 */
@media (max-width: 768px) {
    .message-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .message-content,
    .comment-list,
    .comment-form {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }
    .comment-form form {
        flex-direction: column;
    }
    .comment-form input[type="text"],
    .comment-form input[type="email"] {
        width: 100%;
    }
}
