/* ===== 修罗论坛 前端增强：滚动广告条 + 暗色精修 ===== */

:root {
    --tt-accent: #f5a524;
    --tt-accent-2: #fbbf24;
    --tt-line: rgba(255, 255, 255, .09);
    --tt-card: rgba(255, 255, 255, .045);
}

/* ---------- 基础质感 ---------- */
body, .container, .navbar, .card, .btn {
    font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 顶部导航：玻璃拟态 + 发光底边 */
#header.navbar {
    background: linear-gradient(180deg, rgba(26, 19, 8, .92), rgba(26, 19, 8, .72)) !important;
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid rgba(245, 165, 36, .28);
    box-shadow: 0 2px 22px rgba(0, 0, 0, .38), inset 0 -1px 0 rgba(245, 165, 36, .12);
    padding-top: .55rem;
    padding-bottom: .55rem;
}

#header .nav-link {
    border-radius: 8px;
    transition: background .18s ease, color .18s ease;
}

#header .nav-link:hover {
    background: rgba(245, 165, 36, .14);
}

#header .home > .nav-link,
#header .nav-item.active > .nav-link {
    color: #fff !important;
}

/* 卡片：统一圆角、细描边、柔和阴影 */
.card {
    background: var(--tt-card) !important;
    border: 1px solid var(--tt-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid var(--tt-line) !important;
    background: rgba(255, 255, 255, .03) !important;
}

/* 帖子列表：行级悬浮、左侧强调条 */
li.media.thread {
    position: relative;
    padding: .85rem .75rem;
    border-radius: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: background .18s ease, transform .18s ease;
}

li.media.thread:hover {
    background: rgba(245, 165, 36, .10);
    transform: translateX(2px);
}

li.media.thread::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24%;
    bottom: 24%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--tt-accent), var(--tt-accent-2));
    opacity: 0;
    transition: opacity .18s ease;
}

li.media.thread:hover::before {
    opacity: 1;
}

/* 头像柔化 */
.avatar-1, .avatar-2, .avatar-3 {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 196, 120, .08);
}

/* 按钮更圆润 */
.btn {
    border-radius: 10px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, var(--tt-accent-2)) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(245, 165, 36, .26);
}

/* 列表里的复选框弱化，不喧宾夺主 */
.card-body input[type="checkbox"],
.threadlist input[type="checkbox"] {
    opacity: .35;
    transform: scale(.9);
}

/* 轮播：圆角 + 自适应高度 */
#carouselExampleControls {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    border: 1px solid var(--tt-line);
}

#carouselExampleControls img {
    height: auto !important;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    display: block;
}

#carouselExampleControls .carousel-caption {
    background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    border-radius: 10px;
    padding-bottom: .6rem;
}

/* 分页 */
.pagination .page-link {
    background: rgba(255, 255, 255, .05);
    border-color: var(--tt-line);
    color: #fde68a;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #f97316, var(--tt-accent-2));
    border-color: transparent;
}

/* 页脚 */
#footer, .footer {
    opacity: .55;
    font-size: .82rem;
}

/* ---------- 滚动文字广告条 ---------- */
.tt-adbar {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 14px;
    padding: .5rem .7rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 165, 36, .3);
    background: linear-gradient(100deg, rgba(245, 165, 36, .16), rgba(251, 191, 36, .06));
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.tt-adbar-badge {
    flex: 0 0 auto;
    padding: .16rem .62rem;
    font-size: .76rem;
    letter-spacing: .04em;
    color: #1c150a;
    background: linear-gradient(135deg, #fcd34d, #f5a524);
    border-radius: 999px;
    font-weight: 600;
}

.tt-adbar-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.tt-adbar-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tt-marquee 38s linear infinite;
}

.tt-adbar:hover .tt-adbar-track {
    animation-play-state: paused;
}

.tt-adbar-item {
    color: #fdf0d5;
    text-decoration: none;
    font-size: .88rem;
    padding: 0 1.6rem;
}

.tt-adbar-item:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes tt-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- 顶部品牌 ---------- */
#header .navbar-brand .logo-2 {
    display: none !important;
}

#header .navbar-brand::before {
    content: "修罗";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #120d07;
    background: linear-gradient(135deg, #fcd34d, #f5a524);
    box-shadow: 0 4px 14px rgba(245, 165, 36, .35);
    vertical-align: middle;
}

#header .navbar-brand::after {
    content: "修罗论坛";
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: #fff8e6;
    vertical-align: middle;
}
