/* 产品列表页样式 */
.main-content {
    position: relative;
    min-height: 400px;
    background: url('../images/sky-bg.svg') no-repeat center top;
    background-size: cover;
    padding: 20px 0;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    background: #fff;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.page-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 第一行布局 */
.product-layout {
    display: flex;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 左侧导航区域 */
.category-nav {
    width: 250px;
    background-color: #f8f8f8;
    padding: 20px 0;
    border-right: 1px solid #e2e8f0;
}

/* 期次选择下拉框样式 */
.period-select-wrapper {
    padding: 0 20px;
    margin-bottom: 15px;
}

.period-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.period-select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.period-select option {
    padding: 8px;
}

.category-title {
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: rgba(37,99,235,0.1);
}

.category-item.active {
    background-color: #2563eb;
    color: white;
}

/* 右侧产品列表区域 */
.product-list-container {
    flex: 1;
    padding: 20px;
}

/* 搜索栏 */
.search-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar form {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
}

/* 搜索表单中的批次选择器样式 */
.search-bar .period-select-wrapper {
    margin: 0 10px 0 0;
    padding: 0;
    min-width: 200px;
}

.search-bar .period-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 14px;
}

.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem 0 0 0.375rem;
    outline: none;
    min-width: 200px;
}

.search-bar button {
    padding: 8px 16px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background-color: #1d4ed8;
}

/* 产品表格 */
.table-responsive {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-table th,
.product-table td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.product-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.product-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.product-table tbody tr:hover {
    background-color: rgba(37,99,235,0.05);
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #999;
}

.empty-data {
    text-align: center;
    padding: 40px !important;
    color: #666;
    font-size: 16px;
    background-color: #f9f9f9;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #e2e8f0;
    color: #333;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-detail {
    background-color: #2563eb;
    color: white;
    border: none;
}

.btn-detail:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-cert {
    background-color: #10b981;
    color: white;
    border: none;
}

.btn-cert:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-view {
    background-color: #6366F1;
    color: white;
    border: none;
}

.btn-view:hover {
    background-color: #4F46E5;
    transform: translateY(-2px);
}

/* 第二行布局 - 五种模式介绍 */
.trust-models {
    margin-top: 30px;
    margin-bottom: 30px;
}

.models-title {
    margin-bottom: 20px;
    font-size: 20px;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
}

.models-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.model-item {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.model-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.model-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: #2563eb;
}

.model-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.model-desc {
    color: #666;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .main-content {
        padding: 15px 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .product-layout {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .category-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px 0;
    }
    
    .period-select-wrapper {
        padding: 0 15px;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .category-item {
        margin: 5px;
        padding: 8px 15px;
        border-radius: 20px;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
    }
    
    .category-item.active {
        background-color: #2563eb;
    }
    
    .models-container {
        flex-direction: column;
    }
    
    .model-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .product-table {
        font-size: 14px;
        width: 100%;
        display: block;
        border: 0;
    }
    
    .product-table thead {
        display: none; /* 隐藏表头 */
    }
    
    .product-table tbody {
        display: block;
        width: 100%;
    }
    
    .product-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .product-table td {
        display: block;
        text-align: right;
        position: relative;
        padding: 12px 15px;
        padding-left: 45%;
        border-bottom: 1px solid #e2e8f0;
        min-height: 30px;
    }
    
    .product-table td:last-child {
        border-bottom: 0;
    }
    
    .product-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: bold;
        color: #333;
    }
    
    /* 操作按钮特殊处理 */
    .product-table td.action-buttons {
        text-align: center;
        padding: 15px;
        display: flex;
        justify-content: center;
        padding-left: 15px;
    }
    
    .product-table td.action-buttons:before {
        display: none;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
        display: inline-block;
        width: auto;
    }
    
    /* 容器调整 */
    .container {
        width: 100%;
        padding: 15px;
        margin: 0;
        border-radius: 0;
    }
    
    .product-list-container {
        padding: 10px;
    }
    
    /* 搜索栏调整 */
    .search-bar form {
        width: 100%;
        max-width: 100%;
    }
    
    /* 分页调整 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .page-link {
        margin: 2px;
        padding: 6px 10px;
        font-size: 13px;
    }
} 