/* Layout & components - 泸州方山景区 */
:root {
    --river-blue: #008397;
    --max-width: 80rem;
    --spacing: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans SC', -apple-system, sans-serif;
    color: #111;
    background: #fff;
}

/* ----- Nav ----- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--river-blue);
    text-decoration: none;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        font-size: 0.875rem;
        font-weight: 500;
    }
    .nav-links a {
        color: #374151;
        text-decoration: none;
    }
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--river-blue);
        font-weight: 700;
    }
}

.nav-cta {
    background: var(--river-blue);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

/* ----- Banner (index) ----- */
.banner {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: var(--spacing);
}

.banner h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.banner-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    background: #fff;
    color: var(--river-blue);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: #fff;
    color: var(--river-blue);
}

/* ----- Content section ----- */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem var(--spacing);
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    cursor: pointer;
}

.card-image {
    display: block;
    height: 16rem;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    text-decoration: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: #6b7280;
    font-size: 0.875rem;
}

.card-link {
    margin-top: 1rem;
    display: inline-block;
    color: var(--river-blue);
    font-weight: 700;
    text-decoration: none;
}

/* ----- Footer ----- */
.footer {
    background: #111827;
    color: #fff;
    padding: 4rem var(--spacing);
    text-align: center;
}

.footer h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-info {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.75rem;
    color: #4b5563;
}

/* ----- Page header (page1) ----- */
.page-header {
    background: var(--river-blue);
    color: #fff;
    padding: 4rem var(--spacing);
    text-align: center;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.8;
}

/* ----- 图集 Gallery ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.gallery-item {
    margin: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

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

.gallery-item img {
    transition: transform 0.3s ease;
}

/* ----- Page1: 景点分类 ----- */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.filters button {
    flex-shrink: 0;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.filters button.active {
    background: var(--river-blue);
    color: #fff;
}

.filters button:not(.active) {
    background: #f3f4f6;
    color: #4b5563;
}

.attraction-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .attraction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .attraction-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.attraction-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.attraction-item .thumb {
    height: 12rem;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.attraction-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.attraction-item:hover .thumb img {
    transform: scale(1.1);
}

.attraction-item .tag {
    font-size: 0.75rem;
    color: var(--river-blue);
    font-weight: 700;
}

.attraction-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

/* ----- Page2: 关于景区 ----- */
.about-card {
    max-width: 64rem;
    margin: 2rem auto;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border-radius: 3rem;
    overflow: hidden;
}

.about-banner {
    position: relative;
    height: 24rem;
}

.about-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.about-body {
    padding: 4rem;
}

.about-body h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-body .intro {
    color: #4b5563;
    line-height: 1.75;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about-info {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f0f9ff;
    border-radius: 0.75rem;
    border-left: 4px solid var(--river-blue);
}

.about-info p {
    margin: 0.5rem 0;
    color: #1e293b;
}

.about-info a {
    color: var(--river-blue);
    text-decoration: none;
    font-weight: 600;
}

.about-info a:hover {
    text-decoration: underline;
}

.stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--river-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

.about-back {
    margin-top: 2rem;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ----- Page3: 景点详情 ----- */
.detail-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1rem;
    position: sticky;
    top: 3.25rem;
    z-index: 40;
}

.detail-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-back {
    padding: 0.5rem;
    border-radius: 9999px;
    text-decoration: none;
    color: #374151;
}

.detail-back:hover {
    background: #f3f4f6;
}

.detail-main {
    max-width: 56rem;
    margin: 2rem auto;
    padding: 0 var(--spacing);
}

.detail-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.detail-card img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

.detail-content {
    padding: 2.5rem;
}

.detail-badge {
    display: inline-block;
    background: #ffedd5;
    color: #c2410c;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.detail-content .prose {
    color: #4b5563;
    line-height: 1.75;
}

.detail-content .prose p {
    margin-bottom: 1.5rem;
}

.detail-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.detail-content ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.detail-content li {
    margin-bottom: 0.5rem;
}

.detail-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.detail-actions .btn-primary {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.detail-actions .btn-icon {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
}

.detail-reviews {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.detail-reviews h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-reviews .review-snippet {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.detail-reviews .review-snippet .user {
    color: var(--river-blue);
    font-weight: 600;
}

/* ----- 餐饮住宿 ----- */
.food-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.food-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.food-card-image {
    height: 12rem;
    overflow: hidden;
}

.food-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-card-body {
    padding: 1.5rem;
    flex: 1;
}

.food-card-type {
    font-size: 0.75rem;
    color: var(--river-blue);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.food-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.food-card-price {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.food-card-desc {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.food-card-loc {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.food-reviews {
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
}

.food-reviews h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.review-snippet {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.review-snippet .user {
    color: var(--river-blue);
    font-weight: 600;
}

.stars {
    color: #f59e0b;
    letter-spacing: 0.05em;
}

/* ----- 游客评价 ----- */
.review-list {
    max-width: 56rem;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #e5e7eb;
    object-fit: cover;
}

.review-meta {
    flex: 1;
}

.review-user {
    font-weight: 700;
    color: #111;
}

.review-date {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.review-content {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.review-link {
    font-size: 0.875rem;
}

.review-link a {
    color: var(--river-blue);
    font-weight: 600;
    text-decoration: none;
}

.review-link a:hover {
    text-decoration: underline;
}

/* ----- 交通指南 ----- */
.traffic-section {
    max-width: 48rem;
    margin: 0 auto;
}

.traffic-intro {
    text-align: center;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.route-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
    border-left: 4px solid var(--river-blue);
}

.route-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111;
}

.route-card .route-label {
    font-size: 0.75rem;
    color: var(--river-blue);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

.route-steps li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.5;
}

.route-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--river-blue);
}

.route-steps li strong {
    color: #111;
}

/* ----- 地理环境 / 自然资源 / 经典景点详述（长文内容页）----- */
.content-page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem var(--spacing) 4rem;
}

.content-page .page-header {
    margin-bottom: 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--river-blue);
}

.content-section .prose {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

.content-section .prose p {
    margin-bottom: 1rem;
}

.content-figure {
    margin: 1.5rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.content-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.content-figure figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    background: #f9fafb;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-section h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

