/* 景点详情页通用样式 */
.attraction-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
}

.attraction-header {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)), no-repeat center center;
    background-size: cover;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.attraction-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.attraction-meta span {
    background-color: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.attraction-intro {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.attraction-intro h2 {
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.intro-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.highlight-points {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.point {
    flex-basis: 48%;
    background-color: rgba(44, 62, 80, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.point h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.attraction-details {
    margin-top: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.attraction-details h2 {
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.detail-item {
    background-color: rgba(44, 62, 80, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.detail-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.back-to-home {
    display: block;
    width: fit-content;
    margin: 1rem auto;
    padding: 0.75rem 1.5rem;
    background-color: #2c3e50;  /* 深蓝色背景 */
    color: white;  /* 白色文字 */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);  /* 添加边框增加可见性 */
}

.back-to-home:hover {
    background-color: #34495e;  /* 悬停时略浅的颜色 */
}

.header-container {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #2c3e50;
    position: relative;
}

.header-container h1 {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.top-home-link {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.top-home-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .attraction-detail {
        padding: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .attraction-header {
        color: white !important;  /* 强制白色文字 */
        padding: 2rem 1rem;
    }

    .attraction-meta {
        flex-direction: column;
        align-items: center;
    }

    .attraction-meta span {
        margin-bottom: 0.5rem;
    }

    .header-container {
        text-align: center;
        padding: 1rem;
    }

    .header-container h1 {
        font-size: 1.8rem;
        color: white;
        margin-bottom: 0.5rem;
    }

    .back-to-home {
        width: 100%;
        max-width: 300px;
        margin: 1rem auto;
    }
}

@media screen and (max-width: 480px) {
    .header-container h1 {
        font-size: 1.5rem;
    }
}
