/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding-top: 76px; /* 为固定导航留出空间 */
}

/* ===== 导航栏 ===== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.navbar-brand i {
    color: #ff6b6b;
}

.nav-link {
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* ===== 主内容区域 ===== */
.main-content {
    padding-top: 30px;
    padding-bottom: 30px;
    min-height: calc(100vh - 76px - 200px);
}

/* ===== 左侧播客卡片 ===== */
.podcast-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.podcast-card img {
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-card:hover img {
    transform: scale(1.05);
}

.podcast-card .card-body {
    padding: 1.5rem;
}

.podcast-card .card-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 0;
}

.podcast-card .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

.podcast-card .card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #999;
    margin-top: 8px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
}

.card-meta i {
    width: 14px;
    text-align: center;
}

.podcast-card .btn {
    border-radius: 20px;
    font-size: 0.82rem;
    padding: 0.3rem 1rem;
    transition: all 0.3s ease;
}

.podcast-card .btn-outline-primary {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.podcast-card .btn-outline-primary:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.podcast-card .btn-outline-secondary {
    border-color: #ddd;
    color: #999;
}

.podcast-card .btn-outline-secondary:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* ===== 分页 ===== */
.pagination .page-link {
    border: none;
    color: #666;
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    margin: 0 2px;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
}

.pagination .page-link:hover {
    background: #ff6b6b;
    color: #fff;
}

/* ===== 右侧边栏卡片 ===== */
.side-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.side-card-header {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f0f0;
    background: #fff;
}

.side-card-header i {
    color: #ff6b6b;
}

.side-card-body {
    padding: 12px 18px;
}

.side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: padding-left 0.3s ease;
}

.side-item:last-child {
    border-bottom: none;
}

.side-item:hover {
    padding-left: 6px;
}

.side-item img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.side-item-info {
    flex: 1;
    min-width: 0;
}

.side-item-info h6 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-item-info .small {
    font-size: 0.78rem;
}

/* ===== 标签云 ===== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-1px);
}

/* ===== 页脚 ===== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff6b6b;
}

.footer .list-unstyled li {
    margin-bottom: 6px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== 响应式适配 ===== */

/* 平板 */
@media (max-width: 991.98px) {
    .podcast-card img {
        min-height: 180px;
    }

    .podcast-card .card-body {
        padding: 1.2rem;
    }

    .side-card {
        margin-top: 20px;
    }
}

/* 手机横屏 */
@media (max-width: 767.98px) {
    body {
        padding-top: 66px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .main-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .podcast-card {
        border-radius: 10px;
    }

    .podcast-card img {
        min-height: 180px;
        max-height: 220px;
        border-radius: 10px 10px 0 0;
    }

    .podcast-card .card-body {
        padding: 1rem;
    }

    .podcast-card .card-title {
        font-size: 1.05rem;
    }

    .card-meta {
        gap: 8px;
        font-size: 0.78rem;
    }

    .side-card {
        margin-top: 20px;
    }

    .side-item img {
        width: 44px;
        height: 44px;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer .col-md-6,
    .footer .col-md-3 {
        margin-bottom: 20px;
    }
}

/* 手机竖屏 */
@media (max-width: 575.98px) {
    .podcast-card img {
        min-height: 160px;
        max-height: 200px;
    }

    .podcast-card .card-body {
        padding: 0.9rem;
    }

    .podcast-card .card-title {
        font-size: 1rem;
    }

    .podcast-card .card-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .card-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.75rem;
    }

    .podcast-card .btn {
        font-size: 0.78rem;
        padding: 0.25rem 0.8rem;
    }

    .side-card-header {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .side-card-body {
        padding: 8px 15px;
    }

    .side-item-info h6 {
        font-size: 0.82rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 3px 12px;
    }

    .pagination .page-link {
        font-size: 0.82rem;
        padding: 0.3rem 0.7rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}