* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-form {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #667eea;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-container input {
    flex: 1;
}

.captcha-container img {
    width: 120px;
    height: 40px;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #f44336;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .auth-form {
        margin: 50px auto;
        padding: 20px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-container img {
        width: 100%;
        height: auto;
    }
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-item {
    margin-left: 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    text-align: center;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* 下拉菜单样式 */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-item {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #667eea;
    padding-left: 22px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* 下拉菜单显示/隐藏 */
.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 下拉切换按钮 */
.dropdown-toggle {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active::after {
    transform: rotate(180deg);
}

/* 美化下拉按钮 */
.nav-item.dropdown .nav-link {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-item.dropdown .nav-link:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.dropdown .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.nav-item.dropdown .nav-link:hover::before {
    left: 100%;
}

/* 瀑布流样式 */
.masonry {
    column-count: 4;
    column-gap: 20px;
    margin: 20px 0;
}

/* 首页帖子列表样式 */
.home-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.masonry-item {
    break-inside: avoid;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.masonry-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.masonry-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    line-height: 1.4;
}

.masonry-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.masonry-item h3 a:hover {
    color: #667eea;
}

.masonry-item h3 a:first-child {
    color: #667eea;
    font-weight: 600;
    margin-right: 8px;
}

.masonry-item h3 a:first-child:hover {
    color: #764ba2;
}

.masonry-item p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masonry-item .title-with-thumbnail {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.masonry-item .title-with-thumbnail h3,
.masonry-item .title-with-thumbnail h4 {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .navbar-nav {
        gap: 10px;
        justify-content: center;
    }
    
    .home-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .masonry-item .title-with-thumbnail {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .masonry-item .title-with-thumbnail h3,
    .masonry-item .title-with-thumbnail h4 {
        width: 100%;
    }
    
    .masonry-item .thumbnail {
        width: 100%;
        height: 200px;
    }
}

.masonry-item .thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.masonry-item:hover .thumbnail {
    transform: scale(1.05);
}

.masonry-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.masonry-item:hover .thumbnail img {
    transform: scale(1.1);
}

.masonry-item .meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.masonry-item .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-group-badge {
    background-color: #667eea;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.masonry-item:hover .user-group-badge {
    background-color: #764ba2;
    transform: translateY(-1px);
}

/* 分类导航样式 */
.categories {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.categories > div {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.categories > div::-webkit-scrollbar {
    height: 6px;
}

.categories > div::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.categories > div::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.categories > div span:first-child {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.categories > div a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    line-height: 1.4;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.categories > div a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.categories > div a:first-of-type { /* "全部"链接 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 公告样式 */
.announcements {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(255, 193, 7, 0.1);
}

.announcements > div {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 193, 7, 0.3);
}

.announcements > div:last-child {
    border-bottom: none;
}

.announcements h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcements h4::before {
    content: "📢";
    font-size: 18px;
}

.announcements p {
    margin: 0;
    font-size: 14px;
    color: #654321;
    line-height: 1.5;
}

/* 置顶帖子样式 */
.sticky-posts {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(33, 150, 243, 0.1);
}

.sticky-posts > div {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(33, 150, 243, 0.3);
}

.sticky-posts > div:last-child {
    border-bottom: none;
}

.sticky-posts a {
    font-size: 16px;
    font-weight: 600;
    color: #1976d2;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-posts a:hover {
    color: #303f9f;
    transform: translateX(5px);
}

.sticky-posts a span {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: auto;
}

/* 响应式瀑布流 */
@media (max-width: 1200px) {
    .masonry {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry {
        column-count: 1;
    }
}

/* 帖子详情页样式 */
.post-detail {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.post-detail h1 {
    margin-bottom: 20px;
    color: #333;
}

.post-detail .meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
    align-items: center;
}

.post-detail .meta a {
    color: #666;
    text-decoration: none;
}

.post-detail .meta a:hover {
    color: #4CAF50;
}

.post-detail .content {
    margin-bottom: 30px;
    line-height: 1.8;
}

.post-detail .post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.post-detail .image-container {
    position: relative;
    max-width: calc(33.333% - 7px);
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.post-detail .clickable-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.post-detail .clickable-image:hover {
    transform: scale(1.05);
}

.post-detail .content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 20px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .post-detail .post-images {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-detail .image-container {
        max-width: 100%;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .post-detail .clickable-image {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

/* 图片模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: 20% auto;
    max-width: 95%;
    max-height: 70%;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #f1f1f1;
    font-size: 24px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        margin: 25% auto;
        max-width: 98%;
        max-height: 65%;
    }
    
    .close {
        top: 8px;
        right: 12px;
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
}

/* 标题溢出处理 */
.masonry-item h3,
.masonry-item h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-detail h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 回复样式 */
.replies {
    margin-top: 30px;
}

.reply {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.reply .meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
}

.reply-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
}

/* 用户个人资料页样式 */
.profile {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 30px;
}

.profile-info h2 {
    margin-bottom: 10px;
    color: #333;
}

.profile-info p {
    color: #666;
}

.profile-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.profile-tab {
    padding: 10px 20px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #f4f4f4;
    cursor: pointer;
}

.profile-tab.active {
    background-color: #fff;
    border-top: 3px solid #4CAF50;
}

.profile-content {
    min-height: 300px;
}

/* 管理员后台样式 */
.admin-panel {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.admin-panel h2 {
    margin-bottom: 30px;
    color: #667eea;
    font-weight: 700;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    gap: 4px;
}

.admin-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.admin-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

.admin-menu-item.active {
    background-color: #fff;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.admin-menu-item.active:hover {
    background-color: #fff;
    color: #667eea;
}

.admin-content {
    min-height: 400px;
}

/* 管理员后台响应式设计 */
@media (max-width: 768px) {
    .admin-panel {
        padding: 20px;
        margin: 20px auto;
    }
    
    .admin-menu {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 6px;
        gap: 3px;
    }
    
    .admin-menu::-webkit-scrollbar {
        display: none;
    }
    
    .admin-menu-item {
        padding: 10px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    /* 表格响应式 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }
    
    .table {
        font-size: 14px;
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .table td:nth-child(2) {
        max-width: 120px;
    }
    
    /* 表单响应式 */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px;
        font-size: 14px;
    }
    
    /* 按钮响应式 */
    .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    /* 统计卡片响应式 */
    .stats {
        grid-template-columns: 1fr;
    }
    
    /* 搜索表单响应式 */
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-form button {
        border-radius: 4px;
    }
    
    /* 批量操作表单响应式 */
    .batch-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .batch-actions select,
    .batch-actions button {
        flex: 1;
        min-width: 120px;
    }
}

/* 表单样式 */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input[type="color"] {
    width: 80px;
    padding: 4px;
    height: 48px;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c62828 0%, #f44336 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table td:nth-child(2) {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table td:last-child {
    white-space: nowrap;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.table tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e6ff 100%);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.table tr {
    transition: all 0.3s ease;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

.pagination a {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 搜索框样式 */
.search-form {
    display: flex;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.search-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 统计卡片样式 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat-card h4 {
    margin-bottom: 10px;
    color: #666;
}

.stat-card .value {
    font-size: 36px;
    font-weight: bold;
    color: #4CAF50;
}

/* 悬浮按钮通用样式 */
.fab {
    position: fixed;
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    right: 30px;
    left: auto;
    top: auto;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-icon {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

/* 悬浮发帖按钮 */
.fab-post {
    bottom: 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.fab-post:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
}

/* 悬浮搜索按钮 */
.fab-search {
    bottom: 100px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.fab-search:hover {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
}

/* 悬浮客服中心按钮 */
.fab-ticket {
    bottom: 170px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.fab-ticket:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
}

/* 悬浮VIP按钮 */
.fab-vip {
    bottom: 240px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    position: fixed !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
}

.fab-vip:hover {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fab {
        width: 50px;
        height: 50px;
        right: 20px;
    }
    
    .fab-post {
        bottom: 20px;
    }
    
    .fab-search {
        bottom: 80px;
    }
    
    .fab-ticket {
        bottom: 140px;
    }
    
    .fab-vip {
        bottom: 200px !important;
        right: 20px !important;
        left: auto !important;
        top: auto !important;
        position: fixed !important;
        z-index: 1000 !important;
    }
    
    .fab-icon {
        font-size: 28px;
    }
}