/* assets/css/style.css */
@charset "UTF-8";

:root {
    --primary-color: #005bb7; /* 更具亲和力的旅游蓝 */
    --primary-hover: #004a99;
    --accent-color: #ff9800; /* 强调色：橙色，用于行动点 */
    --light-blue-bg: #f0f7ff;
    --light-blue-gradient: linear-gradient(135deg, #f0f7ff 0%, #e1efff 100%);
    --dark-blue: #1a3a5f; /* 深色文字蓝 */
    --light-grey: #6c757d;
    --dark-grey: #343a40;
    --pale-off-white: #ffffff;
    --body-bg: #f8fafd;
    --bubble-color: rgba(0, 91, 183, 0.1);
}

body {
    background-color: var(--body-bg);
    font-family: 'Roboto', "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--dark-grey);
    position: relative;
    min-height: 100vh;
}

/* Underwater Background (Memory fa11160f) */
.underwater-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1e5799 0%, #2989d8 50%, #207cca 100%);
    z-index: -1;
    overflow: hidden;
    /* Disable animation on mobile for better performance */
    content-visibility: auto;
}

@media (max-width: 768px) {
    .bubble {
        display: none;
    }
}

.bubble {
    position: absolute;
    bottom: -100px;
    background-color: var(--bubble-color);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% { transform: translateY(0) translateX(0); opacity: 0.5; }
    100% { transform: translateY(-120vh) translateX(50px); opacity: 0; }
}

/* Light ray effect */
.underwater-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    filter: blur(20px);
}

/* Slogan Styling (Memory 34c8c821, 70cf622a) */
.site-brand {
    margin-bottom: 0;
}
.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0;
}
.site-slogan {
    font-size: 0.8rem;
    color: #fff;
    margin-top: 0;
}

/* Navbar Customization */
.navbar-custom {
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
    padding: 15px 0;
}
.navbar-custom .navbar-brand .site-title {
    color: var(--primary-color) !important;
}
.navbar-custom .navbar-brand .site-slogan {
    color: var(--light-grey) !important;
}
.navbar-custom .navbar-brand i {
    color: var(--primary-color) !important;
}
.navbar-custom .nav-link {
    color: var(--dark-blue) !important;
    font-weight: 600;
    font-size: 1.15rem;
    padding-left: 25px !important;
    padding-right: 25px !important;
    transition: all 0.3s ease;
}
.navbar-custom .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Search Bar Section */
.header-search-container {
    background: var(--light-blue-gradient);
    padding: 40px 0;
    margin-bottom: 0;
}
.header-search {
    max-width: 800px;
    margin: 0 auto;
}
.header-search .form-control {
    border: 1px solid #d1e3f8;
}
.header-search .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.header-search .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Homepage Hero */
.hero-section {
    background: #ffffff;
    padding: 30px 0;
    text-align: center;
}
.hero-carousel-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .hero-carousel-img {
        height: 250px;
    }
    .hero-slogan {
        font-size: 24px !important;
        margin-top: 20px !important;
    }
    .hero-sub-slogan {
        font-size: 16px !important;
    }
    .header-search-container {
        padding: 20px 0 !important;
    }
    .header-search .btn-primary {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }
    .header-search .form-control {
        font-size: 1rem !important;
        padding: 10px !important;
    }
    .sidebar-module {
        padding: 15px !important;
    }
    .article-card {
        margin-bottom: 15px;
    }
    .footer-custom {
        padding-top: 40px !important;
        text-align: center;
    }
    .footer-custom h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
.carousel-item:hover .hero-carousel-img {
    transform: scale(1.02);
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s;
}
#heroCarousel:hover .carousel-control-prev, 
#heroCarousel:hover .carousel-control-next {
    opacity: 0.8;
}
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}
.hero-slogan {
    font-size: 32px;
    color: var(--dark-blue);
    font-weight: 700;
    margin-top: 40px;
}
.hero-sub-slogan {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 10px;
    opacity: 0.8;
}

/* Category Page styles (for sidebar pills) */
.nav-category-sidebar .nav-link {
    font-size: 1.1rem;
    transition: all 0.3s;
}
.nav-category .nav-link:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Article Cards */
.article-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f3f7;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #e1e9f1;
}
.article-card .card-title {
    font-size: 19px;
    font-weight: 700 !important;
    color: var(--dark-blue);
    line-height: 1.4;
}
.article-card .card-text {
    font-size: 15px;
    color: var(--light-grey);
}
.btn-check-more {
    background-color: var(--light-blue-bg);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-check-more:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Sidebar Customization */
.sidebar-module {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #f0f3f7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.sidebar-title {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}
.hot-dest-tags {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}
.hot-dest-tags::-webkit-scrollbar {
    height: 4px;
}
.dest-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    text-decoration: none;
}
.dest-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-size: 24px;
}
.dest-name {
    font-size: 14px;
    color: var(--dark-grey);
}

/* City Navigation Card */
.city-nav-tabs .nav-pills .nav-link {
    background: transparent;
    color: var(--light-grey);
    border: 1px solid transparent;
    transition: all 0.3s;
}
.city-nav-tabs .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}
.city-badge {
    transition: all 0.3s ease;
    font-weight: 500;
}
.city-badge:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}
/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #2c3e50;
}

/* Breadcrumb Styling */
.breadcrumb-nav-wrapper {
    background: var(--primary-color);
    padding: 12px 0;
    margin-top: -1px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-custom .breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    padding: 0 8px;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
    padding-left: 10px;
    font-size: 0.9rem;
}

/* Category Sidebar Pills */
.nav-pills .nav-link {
    border-radius: 8px;
    margin-bottom: 5px;
    color: #495057;
    border: 1px solid transparent;
}
.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}
.nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Card Enhancements */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05) !important;
}

/* Article Page Content */
.article-content {
    line-height: 1.8;
    color: #333;
}
.article-content p {
    margin-bottom: 1.5rem;
}

/* Zhihu Style Article Enhancements */
.article-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f3f7;
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
}

.article-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-image-wrapper:hover img {
    transform: scale(1.03);
}

.image-caption {
    background: #fcfcfc;
    padding: 10px 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-style: italic;
}

/* Footer Customization */
.footer-custom {
    background-color: #1a3a5f;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 70px !important;
}
.footer-custom h5 {
    color: #ffffff; /* 修改第一行（标题）文字颜色为纯白 */
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.8rem !important;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}
.footer-custom h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.footer-custom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s;
}
.footer-custom a:hover {
    color: #ffffff;
    padding-left: 5px;
}
.footer-custom .list-unstyled li {
    margin-bottom: 12px !important;
}
.footer-custom .site-statistics {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
}
