﻿/* common.css - 共用样式 */
/* 基础样式重置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #212529;
}

/* 导航栏样式 */
.navbar {
    padding: 0.5rem 1rem;
}

    .navbar .dropdown-menu {
        margin-top: 0;
        border: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }

    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }

/* 卡片样式 */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

    .card:hover {
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

    .card-header h2,
    .card-header h3 {
        font-weight: 600;
    }

/* 列表项样式 */
.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s;
    padding: 0.75rem 1.25rem;
    border-color: rgba(0, 0, 0, 0.05);
}

    .list-group-item:hover {
        border-left-color: #1e88e5;
        background-color: rgba(0, 0, 0, 0.02);
        transform: translateX(3px);
    }

/* 模块标题 */
.module-title {
    font-weight: 600;
    color: #1e88e5;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

    .module-title i {
        margin-right: 0.5rem;
    }



/* 主要内容容器 */
main.container {
    padding: 0 15px;
    max-width: 1600px;
    margin: 0 auto;
}

    main.container.my-4 {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

/* 响应式设计 */
@media (min-width: 576px) {
    main.container {
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    main.container {
        padding: 0 30px;
    }
}

@media (min-width: 992px) {
    main.container {
        padding: 0 140px;
    }
}



/* 添加在common.css中 */
.no-scroll {
    overflow: hidden;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1055;
    display: none;
    transition: opacity 0.3s;
}

    .filter-overlay.show {
        display: block;
        opacity: 1;
    }

@media (min-width: 769px) {
    .col-md-3 {
        display: block !important;
    }

    .filter-toggle-btn {
        display: none !important;
    }
}


a, button, input, .btn {
    transition: all 0.2s ease;
}
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

a.collect-btn {
    transition: color 0.3s;
}

    a.collect-btn:hover {
        opacity: 0.8;
    }


.collect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 120px;
}
    .collect-btn i {
        margin-right: 0.4rem;
        font-size: 0.9em;
    }

@media (max-width: 768px) {
    .collect-btn {
        min-width: 0;
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

        .collect-btn i {
            margin-right: 0.3rem;
        }
}


/* 添加在全局CSS中 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}