* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-width: 1476px;
    padding-top: 0;
}

a{
    text-decoration: none;
    color: black;
}

.top-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
}

.carousel-section {
    position: relative;
    height: 500px;
    /*overflow: hidden;*/
    /*background: #000;*/
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*opacity: 0;*/
    /*transition: opacity 1s ease-in-out;*/
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    /*opacity: 1;*/
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.carousel-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 轮播图导航点 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

/*.carousel-section::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: #000;*/
/*    z-index: 0;*/
/*}*/

/* Bootstrap carousel适配 */
.carousel-inner {
    height: 100%;
}

.carousel-inner > .item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/*.carousel.slide .carousel-inner .item {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    opacity: 0;*/
/*    transition: opacity 0.6s ease-in-out;*/
/*}*/

.carousel-inner > .item.active {
    display: block;
}

/* 轮播图导航点 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
    margin: 0;
    padding: 0;
    list-style: none;
    width: auto;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    text-indent: 0;
    margin: 0;
}

.carousel-indicators li.active {
    background: white;
}

.carousel-dot.active {
    background: white;
}
.back-button{
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}
.search-section {
    width: 1476px;
    background: white;
    padding: 50px 0;
    /*border-bottom: 1px solid #ddd;*/
    margin: 0 auto;
}

.search-container {
    
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.search-section {
    /*background: rgba(0,0,0,0.8);*/
    /*position: absolute;*/
    bottom: 0;
    left: 0;
    right: 0;
    /*padding: 80px 0;*/
    z-index: 4;
    background-color: white;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 0 20px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 12px 30px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
}

.main-content {
    width: 1476px;
    background-color: #fff;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.sidebar {
    width: 200px;
    background: white;
    border-radius: 4px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    height: fit-content;
    padding-left: 20px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    /*background: #f8f9fa;*/
    /*border-left: 0.5rem solid #F6DDDD;*/
    padding: 12px 15px 12px 23px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    /*border-bottom: 1px solid #e9ecef;*/
    position: relative;
}
.sidebar-title:before{
    content: ' ';
    position: absolute;
    height: 100%;
    width: 8px;
    background-color: #F6DDDD;
    top: 0;
    left: 0;
    border-radius: 2px;
}
.sidebar-title.active{
    /*border-left: 0.5rem solid #B02626;*/
}

.sidebar-title.active:before{
    background-color: #B02626;
}

.sidebar-menu {
    list-style: none;
    padding-left: 1.5rem;
}

.sidebar-menu li {
    /*border-bottom: 1px solid #f0f0f0;*/
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu > li > a {
    display: inline-block;
    padding: 15px 0 0 0;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    /*background: #007bff;*/
    /*color: white;*/
    /*border-bottom: 3px solid #B02626;*/
    color: #2D2D2D;
    position: relative;
}

.sidebar-menu a:hover:before,
.sidebar-menu a.active:before {
    content: ' ';
    height: 4px;
    width: 100%;
    background-color: #B02626;
    position: absolute;
    bottom: -2px;
    border-radius: 2px;
}

.region-selector {
    padding: 15px;
}

.region-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.region-dropdown {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.region-list {
    /*max-height: 200px;*/
    overflow-y: auto;
    margin-top: 10px;
}

.region-item {
    padding: 5px 0;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.region-item:hover {
    color: #007bff;
}

label {
    margin-bottom: 0;
}

input[type="radio"], input[type="checkbox"]{
    margin: 0;
}

.region-item input[type="checkbox"] {
    margin-right: 5px;
}

.content-area {
    flex: 1;
    background: white;
    border-radius: 4px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    padding: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.content-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-image {
    /*height: 180px;*/
    /*background: #ddd;*/
    position: relative;
    overflow: hidden;
    flex: 1;
    aspect-ratio: 1;
}
.card-image{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-title {
    padding: 15px;
    background: white;
}

.content-title h4 {
    /*font-size: 14px;*/
    color: #333;
    margin: 0;
    /*text-align: center;*/
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    font-size: 13px;
    color: #666;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 10px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 3px;
}

.pagination a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

.red-pattern {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.folk-pattern {
    background: linear-gradient(45deg, #fd7e14, #e55500);
}

.tang-pattern {
    background: linear-gradient(45deg, #20c997, #198f65);
}

.history-pattern {
    background: linear-gradient(45deg, #6f42c1, #5a32a3);
}

.culture-pattern {
    background: linear-gradient(45deg, #e83e8c, #d91a72);
}

.heritage-pattern {
    background: linear-gradient(45deg, #fd7e14, #e55500);
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
}

.container {
    width: 1476px;
    margin: 0 auto;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 14px;
}
/* 加载状态样式 */
.loading-content {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 14px;
}

.loading-content .fa-spinner {
    font-size: 24px;
    margin-bottom: 15px;
    color: #007bff;
}

.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 14px;
}

.no-data::before {
    content: '\f016';
    font-family: FontAwesome;
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #ddd;
}