* {
    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;
}

/* 顶部标题 */
.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);
}

/* 轮播图区域 */
.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 {
    /*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;
}

/* 文化类别区域 */
.culture-categories {
    padding: 0;
    /*background: #f8f9fa;*/
    background-color: white;
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 85px;
    /*margin-top: 50px;*/
    margin-left: 120px;
    margin-right: 120px;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.category-image {
    height: 331px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-title {
    /*position: absolute;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    text-align: center;
    line-height: 4;
    background-color: #3B3B3B;
}

.red-culture {
    background-image: url('assets/img/red.png');
}

.tang-culture {
    background-image: url('assets/img/tang.png');
}

.folk-culture {
    background-image: url('assets/img/fei.png');
}

/* 展示区域 */
.showcase-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: bold;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 46px;
    margin-top: 50px;
    margin-left: 50px;
    margin-right: 50px;
}

.showcase-item {
    background: #f8f9fa;
    border-radius: 10px;
    aspect-ratio: 1;
    /*height: 200px;*/
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.showcase-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #ccc;
    z-index: 1;
}

/*.showcase-item:nth-child(1) {*/
/*    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);*/
/*}*/

/*.showcase-item:nth-child(2) {*/
/*    background: linear-gradient(45deg, #4ecdc4, #6fd8d2);*/
/*}*/

/*.showcase-item:nth-child(3) {*/
/*    background: linear-gradient(45deg, #45b7d1, #6cc6dd);*/
/*}*/

/*.showcase-item:nth-child(4) {*/
/*    background: linear-gradient(45deg, #f9ca24, #f6b93b);*/
/*}*/

/*.showcase-item:nth-child(5) {*/
/*    background: linear-gradient(45deg, #a55eea, #b968ee);*/
/*}*/

/*.showcase-item:nth-child(6) {*/
/*    background: linear-gradient(45deg, #26de81, #4ae096);*/
/*}*/

/*.showcase-item:nth-child(7) {*/
/*    background: linear-gradient(45deg, #fd79a8, #fd9bb8);*/
/*}*/

/*.showcase-item:nth-child(8) {*/
/*    background: linear-gradient(45deg, #fdcb6e, #fdd482);*/
/*}*/

.showcase-item{
    background-image: url(/assets/img/exam.png);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 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;
}