/* Bootstrap 自定义样式覆盖 */

/* 全局字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* 导航栏 */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Hero 区域 */
.hero-section {
    position: relative;
    background-image: url('https://static.seedtrip.net/img/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-img-overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}

.card-img-overlay h5 {
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 地区卡片 */
.region-card {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
}

.region-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.region-card:hover img {
    transform: scale(1.05);
}

.region-card .card-img-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

/* 攻略卡片 */
.guide-card .card-body {
    padding: 1.25rem;
}

.guide-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card .card-text {
    font-size: 0.875rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section 标题 */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

/* 徽章 */
.badge-count {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 按钮圆角 */
.btn {
    border-radius: 8px;
}

/* 分页 */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
}

/* 页脚链接 */
footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* 侧边栏固定 */
.sticky-top {
    z-index: 100;
}

/* 地区/城市详情页左侧卡片 */
.sidebar-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.sidebar-card .card-img-top {
    border-radius: 12px 12px 0 0;
}

/* 攻略卡片hover */
a:hover .guide-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

a:hover .guide-card .card-title {
    color: var(--bs-primary);
}
