/* ========================================
   Scenic Spots Page - Modern Design System
   ======================================== */

:root {
    /* 主色调 */
    --primary: #667eea;
    --primary-light: #764ba2;
    --primary-dark: #4c51bf;
    
    /* 辅助色 */
    --accent: #f093fb;
    --accent-light: #f5576c;
    --accent-dark: #fa709a;
    
    /* 中性色 */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* 语义色 */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* 字号 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 过渡 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar-brand i {
    font-size: var(--text-2xl);
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    margin-top: 76px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    animation: moveGradient 15s ease infinite;
}

@keyframes moveGradient {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* ========================================
   Filter Section
   ======================================== */
.filter-section {
    background: var(--white);
    padding: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 76px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Section Headers
   ======================================== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Spots Section
   ======================================== */
.spots-section {
    padding: var(--space-3xl) 0;
}

.spot-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.spot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.spot-card.featured {
    border: 3px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, var(--primary), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.spot-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.spot-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.spot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.spot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.spot-card:hover .spot-overlay {
    opacity: 1;
}

.spot-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.spot-header h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.spot-header h3 a {
    transition: color var(--transition-base);
}

.spot-header h3 a:hover {
    color: var(--primary);
}

.spot-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFA500, #FF6347);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
}

.spot-rating i {
    font-size: var(--text-sm);
}

.spot-location {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 4px;
}

.spot-description {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    flex: 1;
}

.spot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    color: var(--primary);
    padding: 4px var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.spot-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 2px solid var(--gray-200);
}

.spot-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.price-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.price-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

.spot-guides {
    color: var(--gray-600);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.service-card {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    background: var(--gray-50);
    transition: all var(--transition-base);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-4xl);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta-content h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-title {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-text {
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: var(--text-xl);
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .spot-image {
        height: 250px;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .filter-tabs {
        gap: var(--space-sm);
    }
    
    .filter-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-sm);
    }
    
    .spot-image {
        height: 200px;
    }
    
    .spot-content {
        padding: var(--space-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .back-to-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 45px;
        height: 45px;
    }
}
