* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e74c3c;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.delicacy, .attractions {
    overflow: hidden;
    margin: 3rem auto;
    padding-bottom: 30px;
}

.attraction_header {
    padding: 20px;
    margin: 40px 0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-banner {
    color: white;
    display: flex;
    height: 300px;
    padding: 0 1rem;
    text-align: center;
    align-items: center;
    background-size: cover;
    justify-content: center;
    background-position: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('/images/attraction/header.jpg');
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title {
    color: #2c6e8f;
    text-align: center;
    margin-bottom: 2rem;
}

.card-container {
    gap: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #fff;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: #2c6e8f;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #666;
    overflow: hidden;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-link {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.card-link:hover {
    text-decoration: underline;
}

.header-top {
    color: white;
    padding: 10px 0;
    background-color: #e74c3c;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.user-links a {
    color: white;
    margin-left: 15px;
}

nav {
    background-color: #fff;
}

.main-nav {
    display: flex;
    list-style: none;
    position: relative;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    font-weight: bold;
    padding: 15px 20px;
}

.main-nav > li:hover > a {
    color: #e74c3c;
}

.info-menu {
    left: 0;
    top: 100%;
    z-index: 10;
    width: 120px;
    display: none;
    list-style: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav > li:hover .info-menu {
    display: block;
}

.info-menu li {
    display: flex;
    justify-content: center;
}

.info-menu li a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.info-menu li a:hover {
    background-color: #f9f9f9;
}

.server-menu {
    left: 0;
    top: 100%;
    z-index: 10;
    width: 120px;
    display: none;
    list-style: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav > li:hover .server-menu {
    display: block;
}

.server-menu li {
    display: flex;
    justify-content: center;
}

.server-menu li a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.server-menu li a:hover {
    background-color: #f9f9f9;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
}

.main-content {
    padding: 30px 0;
}

.slider {
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    margin-bottom: 30px;
    background-color: #ddd;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 快速链接 */
.quick-links {
    gap: 15px;
    display: grid;
    margin-bottom: 30px;
    grid-template-columns: repeat(4, 1fr);
}

.quick-link {
    display: flex;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    align-items: center;
    background-color: #fff;
    justify-content: center;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quick-link:hover {
    transform: translateY(-5px);
}

.quick-link img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    margin-bottom: 0 !important;
}

.content-section {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    font-size: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    justify-content: space-between;
    border-bottom: 2px solid #e74c3c;
}

.section-title a {
    font-size: 14px;
    font-weight: normal;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    padding: 12px 0;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li a:hover {
    color: #e74c3c;
}

.info-list .date {
    color: #999;
    font-size: 14px;
}

.section-content {
    gap: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.image-news {
    overflow: hidden;
}

.news-item {
    overflow: hidden;
    position: relative;
    border-radius: 5px;
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-title {
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    padding: 10px;
    font-size: 14px;
    position: absolute;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.pagination {
    display: flex;
    margin-top: 30px;
    justify-content: center;
}

.pagination a {
    margin: 0 5px;
    display: block;
    padding: 8px 15px;
    border-radius: 3px;
    background-color: #fff;
}

.pagination a.active {
    color: white;
    background-color: #e74c3c;
}

.detail-header {
    color: white;
    display: flex;
    height: 300px;
    padding: 0 1rem;
    text-align: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.detail-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.detail-header .tags {
    text-align: center;
    padding: 0 20px 15px;
}

.detail-header .food-tag {
    color: white;
    font-size: 13px;
    padding: 5px 12px;
    margin: 0 5px 10px;
    border-radius: 20px;
    display: inline-block;
    background: rgba(0, 0, 0, .5);
}

.detail-images {
    gap: 15px;
    display: grid;
    margin: 20px 0;
    grid-template-columns: repeat(3, 1fr);
}

/* 内容区块 */
.detail-section {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.detail-section h2 {
    color: #2c6e8f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.detail-section h3 {
    color: #555;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}

.detail-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.detail-section ul, .detail-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.detail-section li {
    margin-bottom: 0.5rem;
}

.gallery {
    gap: 1rem;
    display: grid;
    margin-top: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.gallery img {
    width: 100%;
    cursor: pointer;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 实用信息表格 */
.info-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.info-table th {
    width: 30%;
    font-weight: 600;
    background-color: #f8f9fa;
}

.map-container {
    display: flex;
    height: 450px;
    color: #6c757d;
    margin-top: 1rem;
    border-radius: 8px;
    align-items: center;
    background: #e9ecef;
    justify-content: center;
}

footer {
    color: #fff;
    padding: 40px 0 20px;
    background-color: #333;
}

.footer-content {
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.copyright {
    color: #bbb;
    font-size: 14px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid #444;
}

.food-gallery {
    gap: 30px;
    display: grid;
    max-width: 1200px;
    grid-template-columns: repeat(3, 1fr);
}

.food-card {
    cursor: pointer;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s, box-shadow 0.4s;
}

.food-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.food-card .tags {
    gap: 10px;
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
}

.food-card .tags .food-tag {
    color: #fff;
    padding: 2px 10px;
    border-radius: 5px;
    background: #e74c3c;
}

.food-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.food-card:hover .food-img {
    transform: scale(1.05);
}

.food-name {
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.food-desc {
    color: #666;
    font-size: 15px;
    text-align: center;
    padding: 15px 20px;
}

.food-detail {
    max-width: 1200px;
    margin: 30px auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-content {
    gap: 30px;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
    align-items: center;
}

.detail-img-container {
    flex: 1;
    min-width: 300px;
}

.detail-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-info {
    flex: 1;
    min-width: 300px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    font-size: 22px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.info-section p {
    color: #555;
    line-height: 1.7;
}

.ingredients {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
}

.ingredient {
    font-size: 14px;
}

.back-btn {
    gap: 8px;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 25px;
    border-radius: 30px;
    align-items: center;
    margin-bottom: 30px;
    background: #e6b422;
    display: inline-flex;
    transition: background-color 0.3s, transform 0.2s;
}

.back-btn:hover {
    color: #fff;
    background-color: #a52217;
    transform: translateY(-2px);
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
    border: 5px solid rgba(193, 44, 31, 0.2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.jcmd_hero {
    color: #fff;
    height: 70vh;
    display: flex;
    padding: 0 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1758&q=80') no-repeat center center/cover;
}

.jcmd_hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.jcmd_hero-content p {
    max-width: 700px;
    font-size: 1.2rem;
    margin: 0 auto 30px;
}

/* 内容区域 */
.jcmd_section {
    padding: 80px 0;
}

.jcmd_section-title {
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

.jcmd_section-title h2 {
    color: #e74c3c;
    font-size: 2.5rem;
    display: inline-block;
}

.jcmd_section-title h2::after {
    content: '';
    width: 80px;
    height: 3px;
    display: block;
    margin: 15px auto;
    background-color: #e74c3c;
}

/* 关于剑川木雕 */
.jcmd_about-content {
    gap: 40px;
    display: flex;
    align-items: center;
}

.jcmd_about-text {
    flex: 1;
}

.jcmd_about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.jcmd_about-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jcmd_about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.jcmd_about-image:hover img {
    transform: scale(1.05);
}

/* 历史沿革 */
.jcmd_history {
    background-color: #f0e6d9;
}

.jcmd_timeline {
    margin: 0 auto;
    max-width: 800px;
    position: relative;
}

.jcmd_timeline::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    content: '';
    margin-left: -3px;
    position: absolute;
    background-color: #e74c3c;
}

.jcmd_timeline-item {
    width: 50%;
    padding: 10px 40px;
    position: relative;
    box-sizing: border-box;
}

.jcmd_timeline-item:nth-child(odd) {
    left: 0;
}

.jcmd_timeline-item:nth-child(even) {
    left: 50%;
}

.jcmd_timeline-content {
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jcmd_timeline-content h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.jcmd_timeline-item::after {
    top: 15px;
    z-index: 1;
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    background-color: #fff;
    border: 4px solid #e74c3c;
}

.jcmd_timeline-item:nth-child(odd)::after {
    right: -10px;
}

.jcmd_timeline-item:nth-child(even)::after {
    left: -10px;
}

.jcmd_features {
    background-color: #fff;
}

.jcmd_features-grid {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.jcmd_feature-card {
    overflow: hidden;
    border-radius: 10px;
    background-color: #fff;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jcmd_feature-card:hover {
    transform: translateY(-10px);
}

.jcmd_feature-img {
    height: 200px;
    overflow: hidden;
}

.jcmd_feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.jcmd_feature-card:hover .jcmd_feature-img img {
    transform: scale(1.1);
}

.jcmd_feature-content {
    padding: 20px;
}

.jcmd_feature-content h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.jcmd_process {
    background-color: #f0e6d9;
}

.jcmd_process-steps {
    gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.jcmd_process-step {
    flex: 1;
    padding: 20px;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jcmd_process-icon {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.jcmd_process-step h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.jcmd_masters {
    background-color: #fff;
}

.jcmd_masters-grid {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.jcmd_master-card {
    overflow: hidden;
    border-radius: 10px;
    background-color: #fff;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jcmd_master-card:hover {
    transform: translateY(-5px);
}

.jcmd_master-img {
    height: 250px;
    overflow: hidden;
}

.jcmd_master-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.jcmd_master-card:hover .jcmd_master-img img {
    transform: scale(1.05);
}

.jcmd_master-content {
    padding: 20px;
}

.jcmd_master-content h3 {
    color: #e74c3c;
    margin-bottom: 5px;
}

.jcmd_master-title {
    color: #777;
    font-style: italic;
    margin-bottom: 10px;
}

.jcmd_gallery-grid {
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.jcmd_gallery-item {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jcmd_gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.jcmd_gallery-item:hover img {
    transform: scale(1.1);
}

.jcmd_gallery-overlay {
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 20px;
    position: absolute;
    transition: transform 0.3s;
    transform: translateY(100%);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.jcmd_gallery-item:hover .jcmd_gallery-overlay {
    transform: translateY(0);
}

.jcmd_culture {
    background-color: #f0e6d9;
}

.jcmd_culture-content {
    gap: 40px;
    display: flex;
    align-items: center;
}

.jcmd_culture-text {
    flex: 1;
}

.jcmd_culture-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.jcmd_culture-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.jcmd_culture-image img {
    width: 100%;
    height: auto;
    display: block;
}

.jcmd_faq {
    background-color: #fff;
}

.jcmd_faq-list {
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.jcmd_faq-item {
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.jcmd_faq-item p {
    padding: 20px;
}

.jcmd_faq-question {
    color: #fff;
    display: flex;
    cursor: pointer;
    padding: 15px 20px;
    align-items: center;
    background-color: #e74c3c;
    justify-content: space-between;
}

/* 响应式设计 */
@media (max-width: 992px) {

    .jcmd_faq-list {
        gap: 20px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .jcmd_hero-content h1 {
        font-size: 2.5rem;
    }

    .jcmd_about-content, .jcmd_culture-content {
        flex-direction: column;
    }

    .jcmd_about-text, .jcmd_about-image, .jcmd_culture-text, .jcmd_culture-image {
        flex: none;
        width: 100%;
    }

    .jcmd_timeline::after {
        left: 31px;
    }

    .jcmd_timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .jcmd_timeline-item:nth-child(even) {
        left: 0;
    }

    .jcmd_timeline-item::after {
        left: 21px;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-news {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .jcmd_hero-content h1 {
        font-size: 2rem;
    }

    .jcmd_hero-content p {
        font-size: 1rem;
    }

    .jcmd_section-title h2 {
        font-size: 2rem;
    }

    .food-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        display: none;
        flex-direction: column;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav > li {
        border-bottom: 1px solid #eee;
    }

    .info-menu {
        width: 100%;
        display: none;
        box-shadow: none;
        position: static;
    }

    .main-nav > li:hover .info-menu {
        display: none;
    }

    .info-menu.active {
        display: block;
    }

    .server-menu {
        width: 100%;
        display: none;
        box-shadow: none;
        position: static;
    }

    .main-nav > li:hover .server-menu {
        display: none;
    }

    .server-menu.active {
        display: block;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-news {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .jcmd_hero {
        height: 60vh;
    }

    .jcmd_hero-content h1 {
        font-size: 1.8rem;
    }

    .jcmd_section {
        padding: 50px 0;
    }

    .jcmd_features-grid, .jcmd_gallery-grid, .jcmd_masters-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-news {
        grid-template-columns: 1fr;
    }

    .detail-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .gallery, .food-gallery, .card-container {
        grid-template-columns: repeat(1, 1fr);
    }
}