/* styles.css */
/* 主题与背景 */
:root {
    --hero-start: #3d5afe;
    --hero-end: #7c4dff;
    --bs-body-font-size: 0.88rem;
}

.app-header {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 60%);
    color: #fff;
}

.hero {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

.hero-title h1 {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.search-wrap {
    max-width: 880px;
}

.search-wrap .form-control {
    padding-left: 0.25rem;
}

.tip {
    max-width: 980px;
    border: 0;
}

/* 筛选区 */
.filter-form .filter-line {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: start;
    gap: 12px 16px;
    /*padding: 12px 0;*/
    border-bottom: 1px solid #eceff4;
}

.filter-form .filter-label {
    font-weight: 600;
    color: #60697b;
    white-space: nowrap;
}

.filter-form .filter-body {
    min-height: 40px;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/*=================================================================================================================*/
/* 响应式  当设备屏幕的宽度小于或等于576像素时，应用内部的CSS规则。
@media (max-width: 576px) <= 576px
含义：当设备屏幕的宽度小于或等于576像素时，应用内部的CSS规则。
@media (min-width: 768px)  >=768px
含义：当设备屏幕的宽度大于或等于768像素时，应用内部的CSS规则。

*/
@media (max-width: 576px) {
    .filter-form .filter-line {
        grid-template-columns: 80px 1fr;
    }
}


@media (min-width: 768px) {
    .row-cols-10 > * {
        flex: 0 0 10%;
        max-width: 10%;
        /*background-color: red !important;*/
    }
}


.click-show {

}

.click-show img {
    height: 38px;
}

/* 现代浏览器标准写法 */
input::placeholder {
    color: #adb5bd !important; /* Bootstrap的次要文字颜色 */
    opacity: 1; /* 某些浏览器默认有透明度 */
}

.search-title {
    text-align: center;
}

.search-title h3 {
    color: #fff;
    font-size: 16px;
}

/*列表部分 *****************************************************************************************/
/* 自定义样式 */
body {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    background-color: #f8f9fa;
}

.journal-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.journal-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.journal-cover {
    position: relative;
    text-align: center;
}

.journal-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-height: 280px;
    object-fit: cover;
}

.journal-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.journal-badges .badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.journal-info {
    padding-left: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.journal-info .d-flex {

}

.journal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    /*margin-bottom: 8px;*/
    line-height: 1.3;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
    margin-top: 4px;
}

.journal-meta {
    /*flex-grow: 1;*/
}

.journal-meta > div {
    margin-bottom: 8px;
    line-height: 1.4;
}

.rating {
    font-size: 12px;
}


.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.category-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    background-color: #6c757d;
}

.category-tag.bg-success {
    background-color: #198754 !important;
}

.category-tag.bg-info {
    background-color: #0dcaf0 !important;
}

.category-tag.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.category-tag.bg-primary {
    background-color: #0d6efd !important;
}

.frequency {
    margin-top: 4px;
}

.frequency-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
}

.database {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.database-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.publication-info {
    font-size: 12px;
    color: #6c757d;
    /*margin-top: 8px;*/
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    height: 50px;
    overflow: hidden;
}

.action-buttons {
    display: flex;
    /*justify-content: space-between;*/
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    /*padding-top: 12px;*/
}

.action-buttons .btn {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.action-buttons .btn i {
    font-size: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .journal-card .row {
        flex-direction: column;
    }

    .journal-card .col-4,
    .journal-card .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .journal-cover {
        margin-bottom: 15px;
    }

    .journal-info {
        padding-left: 0;
    }

    .journal-title {
        position: relative;
    }

    .journal-cover img {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .journal-title {
        font-size: 16px;
    }

    .price {
        font-size: 16px;
    }
}

/* 文字颜色调整 */
.text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

/* 卡片内容对齐 */
.journal-card .row {
    height: 100%;
}

.journal-card .col-8 {
    display: flex;
}

/* 按钮样式微调 */
.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-primary:hover,
.btn-outline-info:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover {
    transform: translateY(-1px);
}


.layui-rate li i.layui-icon {
    font-size: 16px;
}

.text-end {
    position: absolute;
    right: 14px;
    top: 12px;
    cursor: pointer;
}

.stars .layui-rate li i {
    font-size: 16px !important;
}


.loading {
    text-align: center;
    padding: 30px 0;
    color: #6c757d;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
}

.page-load-info {
    width: 100%;
    text-align: center;
    line-height: 40px;
    height: 40px;
    color: red;
    display: none;
    margin-top: -50px;
}


.userinfo div {
    padding: 20px;
    background-image: linear-gradient(to right bottom, #edd8d0, #f3a10c);;
    border-radius: 5%;
}

.userinfo:hover {
    all: unset;
    /* 或者只重置特定属性 */
    background-color: red !important;
    color: unset;
    transform: unset;
}

.copy-info .title{
    font-size: 14px;
    width:100px;
    padding: 4px 10px;
    display: inline-block;
}
.copy-info .info{
    font-size: 13px;
    padding: 4px 10px;
    display: inline-block;
}

