/* CodeMart 主样式文件 */

:root {
    --primary-color: #2d5a27;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container-fluid {
    padding: 0;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    z-index: 1050;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.card-header {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
}

/* 项目卡片 */
.project-card {
    min-height: 380px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* 项目图片圆角样式 */
.project-image {
    border-radius: 12px;
    overflow: hidden;
}

.project-image img {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    border-radius: 8px;
}

.project-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-card .card-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--success-color);
}

.project-stats {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* 按钮样式 */
.btn {
    border-radius: 20px;
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #245020 0%, #3d6b4a 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #4a9625 0%, #95d9b8 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.3);
    color: white;
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
    border-radius: 20px;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    border-radius: 20px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    color: white;
}

/* 小尺寸按钮 */
.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 18px;
}

/* 收藏按钮特殊样式 */
.favorite-btn {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.favorite-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* 表单样式 */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* 统计面板 */
.stats-card {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-card p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* 支付二维码 */
.payment-qr {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem 0;
}

.payment-qr img {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
}

.payment-qr h5 {
    margin-top: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* 分页样式 */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    border-radius: var(--border-radius);
    margin: 0 0.2rem;
    border: 1px solid #ddd;
    color: var(--primary-color);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 表格样式 */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(45, 90, 39, 0.1);
}

/* 徽章样式 */
.badge {
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* 警告框样式 */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* 现代化页脚样式 */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

/* Footer主要内容区域 */
.footer-main {
    position: relative;
    z-index: 2;
}

/* 品牌区域 */
.footer-brand .brand-text {
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-desc {
    color: #b8c5d1;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 社交链接 */
.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #b8c5d1;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Footer标题 */
.footer-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #007bff;
    border-radius: 1px;
}

/* Footer链接 */
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #007bff;
    padding-left: 5px;
}

/* 联系信息 */
.contact-item {
    color: #b8c5d1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
}

.contact-item i {
    width: 20px;
    flex-shrink: 0;
}

/* 备案信息区域 - 重点突出 */
.beian-section {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.beian-container {
    position: relative;
}

.beian-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.beian-items-horizontal {
    align-items: center;
}

.beian-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.beian-item:last-child {
    margin-bottom: 0;
}

/* 响应式设计：小屏幕时垂直排列 */
@media (max-width: 576px) {
    .beian-items-horizontal {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .beian-item {
        justify-content: center;
    }
}

.beian-link {
    color: #e9ecef;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.beian-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.beian-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* 版权信息 */
.copyright-info {
    color: #b8c5d1;
}

.copyright-info p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.tech-info {
    color: #6c757d;
    font-size: 0.8rem;
}

/* 传统footer样式保持兼容 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .project-card .card-img-top {
        height: 150px;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    /* Footer响应式设计 */
    .footer-main {
        padding: 2rem 0 !important;
    }
    
    .footer-brand h4 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .footer-desc {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-title {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .beian-section {
        padding: 1rem 0;
    }
    
    .beian-info {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }
    
    .beian-item {
        justify-content: center;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .copyright-info {
        margin-top: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(45, 90, 39, 0.05);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background: rgba(40,167,69,0.1);
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box .form-control {
    padding-right: 3rem;
}

.search-box .search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--secondary-color);
}

/* 标签样式 */
.tech-tag {
    display: inline-block;
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.2rem;
    border: 1px solid rgba(45, 90, 39, 0.3);
}

/* 评分星级 */
.rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating .empty {
    color: #ddd;
}

/* 侧边栏 */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

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

.user-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 统计卡片样式 */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.stat-label {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

/* 项目卡片增强样式 */
.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    min-height: 380px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--secondary-color);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--primary-color);
}

.project-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.project-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem !important;
    flex-wrap: nowrap;
}

.project-footer .project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem !important;
    flex-wrap: nowrap;
}

.project-actions .btn {
    transition: all 0.3s ease;
    margin: 0 !important;
}

.project-actions .btn:hover {
    transform: translateY(-1px);
}

/* 确保按钮间距在项目卡片中生效 */
.project-card .project-actions .btn + .btn {
    margin: 0 !important;
}

/* 覆盖Bootstrap默认的按钮间距 */
.project-actions .btn.btn-outline-danger {
    margin: 0 !important;
}

.project-actions .btn.favorite-btn {
    margin: 0 !important;
}

/* 项目网格中的按钮间距 */
.projects-grid .project-actions {
    gap: 0.75rem !important;
}

.projects-grid .project-actions .btn {
    margin: 0 !important;
}

/* 账户状态区域样式 */
.security-section {
    margin-bottom: 2rem;
}

.security-section .section-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.security-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--success-color);
}

.account-status {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(45, 90, 39, 0.1);
    position: relative;
    overflow: hidden;
}

.account-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--info-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.status-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.status-item:hover::before {
    width: 6px;
    background: var(--success-color);
}

.status-label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.status-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 0.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.status-item .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.status-item .badge:hover {
    transform: scale(1.05);
}

.status-item .badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none;
}

.status-item .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border: none;
}

.status-item .btn {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

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

.status-item .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #4a7c59);
    border: none;
}

/* 登录历史区域样式 */
.login-history {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(45, 90, 39, 0.1);
    position: relative;
    overflow: hidden;
}

.login-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--info-color), var(--primary-color), var(--success-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.login-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.login-item:last-child {
    margin-bottom: 0;
}

.login-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-left-color: var(--info-color);
}

.login-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(23, 162, 184, 0.03) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-item:hover::after {
    opacity: 1;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-time {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.login-time::before {
    content: '🕒';
    margin-right: 0.75rem;
    font-size: 1.1rem;
    animation: clockTick 2s infinite;
}

@keyframes clockTick {
    0%, 50%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.login-ip {
    font-size: 0.9rem;
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.login-ip::before {
    content: '🌐';
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.login-status {
    display: flex;
    align-items: center;
}

.login-status .badge {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-status .badge::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.6s ease;
}

.login-status .badge:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.login-status .badge:hover::before {
    left: 100%;
}

.login-status .badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none;
    position: relative;
}

.login-status .badge.bg-success::after {
    content: '✓';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    animation: checkPulse 2s infinite;
}

@keyframes checkPulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .status-item .badge,
    .status-item .btn {
        align-self: flex-end;
    }
    
    .account-status {
        padding: 1rem;
    }
    
    .login-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .login-status {
        align-self: flex-end;
    }
    
    .login-history {
        padding: 1rem;
    }
    
    .login-time::before {
        margin-right: 0.5rem;
    }
}

.project-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--success-color);
}

/* 迷你项目卡片 */
.project-card-mini {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.project-image-mini {
    height: 120px;
    overflow: hidden;
}

.project-image-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--secondary-color);
}

.project-content-mini {
    padding: 1rem;
}

.project-title-mini a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-title-mini a:hover {
    color: var(--primary-color);
}

.project-price-mini {
    color: var(--success-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 特色功能卡片 */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

/* 分类卡片 */
.category-link {
    text-decoration: none;
    color: inherit;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-name {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== 联系我们模态框样式 ==================== */

/* 联系链接样式 */
.contact-link {
    position: relative;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #007bff !important;
    transform: translateY(-1px);
}

.contact-link:hover::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 1px;
    animation: linkGlow 0.3s ease;
}

@keyframes linkGlow {
    from { width: 0; }
    to { width: 100%; }
}

/* 模态框整体样式 */
.contact-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    padding: 1.5rem 2rem;
    position: relative;
}

.contact-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contact-modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.contact-modal-body {
    background: white;
    padding: 2.5rem;
    position: relative;
}

.contact-modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

/* 二维码容器样式 */
.qr-code-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.qr-code-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.qr-code-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.qr-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* 联系信息区域样式 */
.contact-info-section {
    padding-left: 1rem;
}

.contact-section-title {
    color: #495057;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 1px;
}

.contact-item-group {
    margin-bottom: 1.5rem;
}

.contact-item-modern {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.contact-item-modern:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.contact-icon {
    color: #007bff;
    font-size: 1.1rem;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-details span {
    color: #6c757d;
    font-size: 0.85rem;
}

.contact-tips {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.contact-tips i {
    color: #ffc107;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-modal-body {
        padding: 1.5rem;
    }
    
    .contact-info-section {
        padding-left: 0;
        margin-top: 1.5rem;
    }
    
    .qr-code-image {
        width: 150px;
        height: 150px;
    }
    
    .contact-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .contact-modal-title {
        font-size: 1.2rem;
    }
    
    .contact-item-modern {
        padding: 0.5rem;
    }
    
    .contact-tips {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* 模态框动画效果 */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
    transform: translate(0, -50px) scale(0.9);
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
}

/* 相关项目样式 */
.related-projects {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.related-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.related-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.related-item:last-child {
    margin-bottom: 0;
}

.related-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.related-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-name a:hover {
    color: #007bff;
}

.related-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .related-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-image {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100px;
        height: 100px;
    }
    
    .related-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 搜索高亮样式 */
.search-highlight {
    background-color: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(255, 235, 59, 0.3);
}

/* 收藏夹页面专用样式 */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.view-controls .btn-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-controls .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.batch-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.batch-actions .btn {
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.batch-actions .btn:hover {
    transform: translateY(-1px);
}

/* 收藏夹网格视图 */
.favorites-grid {
    margin-bottom: 2rem;
}

.favorites-grid .project-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.favorites-grid .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.favorites-grid .card-header {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
}

.favorites-grid .favorite-date {
    font-size: 0.8rem;
    opacity: 0.9;
}

.favorites-grid .project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.favorites-grid .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorites-grid .project-card:hover .project-image img {
    transform: scale(1.05);
}

.favorites-grid .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.favorites-grid .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.favorites-grid .project-card:hover .image-overlay {
    opacity: 1;
}

.favorites-grid .project-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.favorites-grid .project-title a:hover {
    color: var(--primary-color);
}

.favorites-grid .project-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.favorites-grid .stat-item {
    font-size: 0.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.favorites-grid .price-current {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.1rem;
}

.favorites-grid .price-free {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 收藏夹列表视图 */
.favorites-list {
    margin-bottom: 2rem;
}

.favorite-item-list {
    margin-bottom: 1rem;
}

.list-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.project-image-small {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.project-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
}

.project-info .project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-info .project-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.project-info .project-title a:hover {
    color: var(--primary-color);
}

.project-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.project-stats-list .stat-item {
    font-size: 0.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.price-list {
    text-align: center;
}

.price-list .price-current {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.1rem;
}

.price-list .price-free {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .view-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .batch-actions {
        justify-content: center;
    }
    
    .favorites-grid .project-image {
        height: 150px;
    }
    
    .list-card {
        padding: 1rem;
    }
    
    .project-image-small {
        width: 60px;
        height: 60px;
    }
    
    .project-stats-list {
        font-size: 0.7rem;
    }
    
    .actions-list {
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .actions-list .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* 项目卡片迷你版本样式 */
.project-card-mini {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-card-mini .project-image {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.project-card-mini .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-mini .placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-mini .project-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-mini .project-title {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.project-card-mini .project-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.project-card-mini .project-title a:hover {
    color: var(--primary-color);
}

.project-card-mini .project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.project-card-mini .project-meta .badge {
    font-size: 0.7rem;
}

.project-card-mini .price {
    font-weight: 600;
    color: var(--success-color);
    font-size: 0.9rem;
}

.project-card-mini .price-free {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 项目网格布局 - 使用Bootstrap网格系统 */
.projects-grid {
    margin-bottom: 2rem;
}

.projects-grid .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.projects-grid .project-item {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: stretch;
}

.projects-grid .project-item .project-card {
    width: 100%;
}

/* 项目和订单页面控件优化样式 */
.filter-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls .form-select {
    min-width: 140px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: white;
}

.filter-controls .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
    outline: none;
}

.search-box {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

.search-box .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box .form-control {
    border: 1px solid #ddd;
    border-right: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    z-index: 3;
}

.search-box .btn {
    border: 1px solid #ddd;
    border-left: none;
    background-color: #f8f9fa;
    color: var(--secondary-color);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 个人资料页面项目卡片样式 */
#my-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

#my-projects .project-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

#my-projects .project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

#my-projects .project-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
    position: relative;
}

#my-projects .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#my-projects .project-item:hover .project-image img {
    transform: scale(1.05);
}

#my-projects .project-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#my-projects .project-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#my-projects .project-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

#my-projects .project-title a:hover {
    color: var(--primary-color);
}

/* 第一行：价格、状态、评分 横向排列 */
#my-projects .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

#my-projects .project-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

#my-projects .project-status {
    flex-shrink: 0;
}

#my-projects .project-status .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

#my-projects .project-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #6c757d;
    flex-shrink: 0;
}

#my-projects .project-rating i {
    color: #ffc107;
}

/* 第二行：浏览量、下载量、操作按钮 横向排列 */
#my-projects .project-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

#my-projects .project-stats-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    flex: 1;
}

#my-projects .project-stats-info .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#my-projects .project-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

#my-projects .project-actions .btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#my-projects .project-actions .btn:hover {
    transform: translateY(-1px);
}

/* 响应式布局 */
@media (max-width: 768px) {
    #my-projects .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    #my-projects .project-image {
        height: 160px;
    }
    
    #my-projects .project-info {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    #my-projects .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #my-projects .project-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #my-projects .project-stats-info {
        gap: 0.75rem;
    }
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-controls .form-select {
        width: 100%;
        min-width: auto;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
}

/* 确保容器宽度适配 */
.row.align-items-center {
    margin-bottom: 1.5rem;
}

.row.align-items-center .col-md-6:first-child {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .row.align-items-center .col-md-6:first-child {
        margin-bottom: 0;
    }
    
    .filter-controls {
        justify-content: flex-end;
    }
}

/* 区域标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 背景渐变类 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%) !important;
}

/* 占位图片样式 */
.project-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder-small-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 项目列表小图片容器 */
.project-image-small {
    height: 80px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.project-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 项目覆盖层 */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* 筛选侧边栏样式 */
.filter-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-option:hover {
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
}

.filter-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 项目列表项样式 */
.project-list-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* 页面标题样式 */
.page-title {
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 搜索表单样式 */
.search-form .input-group {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    border-radius: 0;
}

.search-form .btn {
    border-radius: 0;
    border: none;
}

/* 迷你项目占位图片样式 */
.project-placeholder-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 头像样式增强 */
.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 个人资料卡片样式 */
.profile-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profile-name {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-email {
    font-size: 0.9rem;
}

.profile-stats .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.profile-stats .stat-label {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

/* 个人资料导航 */
.profile-nav {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.profile-nav .nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid var(--light-color);
    transition: all 0.3s ease;
}

.profile-nav .nav-item:last-child {
    border-bottom: none;
}

.profile-nav .nav-item:hover {
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
}

.profile-nav .nav-item.active {
    background: var(--primary-color);
    color: white;
}

/* 内容卡片 */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.content-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
}

.content-card .card-body {
    padding: 1.5rem;
}

/* 分类图标样式 */
.category-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon-img {
    transform: scale(1.1);
}

/* 订单卡片样式 */
.order-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.order-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info .order-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.order-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.order-status .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.order-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-project {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.project-image-small {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    font-size: 1.5rem;
}

.project-details {
    flex: 1;
    min-width: 0;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-name a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-name a:hover {
    color: var(--primary-color);
}

.project-author {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.project-category {
    font-size: 0.85rem;
    color: #6c757d;
}

.order-amount {
    text-align: center;
    padding: 0 1rem;
}

.order-amount .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.order-actions .btn {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.order-actions .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.order-actions .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.order-actions .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.order-actions .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .order-project {
        flex-direction: row;
        align-items: center;
    }
    
    .order-amount {
        text-align: left;
        padding: 0;
    }
    
    .order-actions {
        flex-direction: row;
        min-width: auto;
    }
    
    .order-actions .btn {
        flex: 1;
    }
}

/* 分类页面项目卡片优化样式 */
.category-projects .project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    min-height: 420px;
}

.category-projects .project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.category-projects .project-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.category-projects .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.category-projects .project-card:hover .project-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.category-projects .project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    font-size: 3rem;
}

.category-projects .project-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-projects .project-badges .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-projects .project-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.category-projects .project-card:hover .project-actions {
    opacity: 1;
    transform: translateX(0);
}

.category-projects .project-actions .btn {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
    border: none;
    color: #495057;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.category-projects .project-actions .btn::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.6s;
}

.category-projects .project-actions .btn:hover::before {
    left: 100%;
}

.category-projects .project-actions .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.category-projects .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    gap: 0.75rem;
}

.category-projects .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.category-projects .card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-projects .card-title a:hover {
    color: var(--primary-color);
}

.category-projects .project-description {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.category-projects .tech-stack {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 32px;
    overflow: visible;
    z-index: 1;
    position: relative;
}

.category-projects .tech-stack .badge {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-projects .tech-stack .badge:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-projects .project-stats {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    overflow: visible;
}

.category-projects .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.category-projects .stat-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.category-projects .stat-value {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.category-projects .author-info {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    overflow: visible;
}

.category-projects .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-projects .author-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.category-projects .author-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.category-projects .card-footer {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    z-index: 1;
    position: relative;
    overflow: visible;
    border-radius: 0 0 12px 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.category-projects .price {
    display: flex;
    align-items: center;
}

.category-projects .price-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.category-projects .price-free {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.category-projects .action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    align-items: center;
}

.category-projects .action-buttons .btn {
    border-radius: 20px;
    padding: 8px 20px;
    height: 40px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a7c59 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-projects .action-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.category-projects .action-buttons .btn:hover::before {
    left: 100%;
}

.category-projects .action-buttons .btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 35px rgba(45, 90, 39, 0.4);
    color: white;
    filter: brightness(1.1);
}

/* 列表视图样式 */
.category-projects .projects-list .project-item {
    margin-bottom: 1.5rem;
}

.category-projects .projects-list .project-card {
    flex-direction: row;
    height: auto;
}

.category-projects .projects-list .project-image-container {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.category-projects .projects-list .card-body {
    flex: 1;
    padding: 1.5rem;
}

.category-projects .projects-list .card-footer {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.category-projects .projects-list .project-stats {
    display: flex;
    gap: 2rem;
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.category-projects .projects-list .stat-item {
    flex-direction: row;
    gap: 8px;
}

.category-projects .projects-list .author-info {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-projects .project-card {
    animation: fadeIn 0.6s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .category-projects .project-card {
        aspect-ratio: 4/5;
    }
}

@media (max-width: 768px) {
    .category-projects .project-card {
        margin-bottom: 1rem;
        aspect-ratio: 5/6;
    }
    
    .category-projects .project-image-container {
        height: 120px;
    }
    
    .category-projects .card-body {
        padding: 0.75rem;
    }
    
    .category-projects .card-footer {
        padding: 0.5rem 0.75rem;
    }
    
    .category-projects .project-card:hover {
        transform: translateY(-2px);
    }
    
    .category-projects .project-actions {
        position: static;
        opacity: 1;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 0.5rem;
        gap: 0.5rem;
    }
    
    .category-projects .projects-list .project-card {
        flex-direction: column;
    }
    
    .category-projects .projects-list .project-image-container {
        width: 100%;
        height: 160px;
    }
    
    .category-projects .projects-list .card-footer {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .category-projects .project-card {
        margin-bottom: 0.75rem;
        aspect-ratio: 1/1;
    }
    
    .category-projects .project-image-container {
        height: 100px;
    }
    
    .category-projects .card-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .category-projects .project-description {
        font-size: 0.75rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        margin-bottom: 0.25rem;
    }
    
    .category-projects .tech-stack {
        margin-bottom: 0.25rem;
    }
    
    .category-projects .tech-stack .badge {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    .category-projects .project-stats {
        padding: 0.25rem;
        margin-bottom: 0.25rem;
    }
    
    .category-projects .author-info {
        padding: 0.25rem;
        margin-bottom: 0.25rem;
    }
}

/* 分类卡片增强样式 */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-link:hover {
    text-decoration: none;
    color: inherit;
}

.category-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.category-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}