/* Brave V3 · 独立单页 app 的配色共线层
 * 作用对象：/photo.html（相册）、/footprints.html（足迹）
 * 这两页是独立 HTML，不经过 Typecho 主题，所以单独引入本文件，
 * 只统一配色/字阶/圆角，不动原有布局与交互。
 */

/* ========== 相册页 ========== */
html, body { background: #17111a !important; }

.bg-layer {
    background: radial-gradient(120% 80% at 50% 0%, rgba(242, 120, 143, .10) 0%, rgba(23, 17, 26, .96) 58%, #17111a 100%) !important;
}

.header-title {
    background: none !important;
    -webkit-text-fill-color: #f4ece3 !important;
    color: #f4ece3 !important;
    font: 500 30px/1.2 "Songti SC", "Noto Serif SC", serif !important;
    letter-spacing: .16em !important;
    text-shadow: none !important;
}

.header-desc {
    color: rgba(244, 236, 227, .42) !important;
    font-size: 11px !important;
    letter-spacing: .2em !important;
}

.header-stats {
    background: none !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 226, 208, .13) !important;
    border-bottom: 1px solid rgba(255, 226, 208, .13) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 14px 6px !important;
    color: rgba(244, 236, 227, .55) !important;
}

.nav-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 226, 208, .13) !important;
    border-radius: 999px !important;
    color: rgba(244, 236, 227, .5) !important;
    font-size: 11.5px !important;
    letter-spacing: .06em !important;
    box-shadow: none !important;
    padding: 7px 15px !important;
    transition: border-color .3s ease, color .3s ease !important;
}

.nav-btn.active {
    background: transparent !important;
    border-color: rgba(242, 120, 143, .5) !important;
    color: #f2788f !important;
    box-shadow: none !important;
}

.user-bar {
    background: rgba(23, 17, 26, .72) !important;
    border: 1px solid rgba(255, 226, 208, .12) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

.wf-col {
    background: rgba(255, 240, 228, .04) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* 把相册页里残留的粉色渐变按钮收成描边 */
.user-bar button,
.user-bar a {
    background-image: none !important;
    background-color: rgba(242, 120, 143, .12) !important;
    border: 1px solid rgba(242, 120, 143, .45) !important;
    color: #f2788f !important;
    box-shadow: none !important;
}

/* ========== 足迹页 ========== */
body.foot-v3,
.footprints-page { background: #17111a !important; }

.vignette-layer {
    background: radial-gradient(120% 90% at 50% 40%, rgba(23, 17, 26, 0) 40%, rgba(10, 7, 13, .88) 100%) !important;
}

.back-btn {
    background: rgba(23, 17, 26, .72) !important;
    border: 1px solid rgba(255, 226, 208, .14) !important;
    border-radius: 12px !important;
    color: #f4ece3 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

.title-card,
.stats-badge {
    background: rgba(23, 17, 26, .72) !important;
    border: 1px solid rgba(255, 226, 208, .12) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

.stats-badge {
    border-radius: 999px !important;
    color: rgba(244, 236, 227, .62) !important;
    font-size: 11.5px !important;
    letter-spacing: .04em !important;
}

.dock-control,
.side-toolbar {
    background: rgba(23, 17, 26, .82) !important;
    border: 1px solid rgba(255, 226, 208, .12) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
}

.footprint-drawer {
    background: #1d1621 !important;
    border: 1px solid rgba(255, 226, 208, .12) !important;
}

/* 提高选择器层级压过单页里自带的 html[data-theme="dark"] 底色 */
html[data-theme="dark"],
html[data-theme="dark"] body,
html.dark, html.dark body {
    background: #17111a !important;
}
.bg-layer {
    background-image: radial-gradient(120% 80% at 50% 0%, rgba(242, 120, 143, .12) 0%, rgba(23, 17, 26, 0) 55%) !important;
}

/* 压掉单页自带的冷蓝径向光，换成玫瑰暖光（单页里是 html[data-theme] .bg-layer，这里用同级+更晚加载取胜） */
html.dark .bg-layer,
html[data-theme="dark"] .bg-layer {
    background-image: radial-gradient(120% 70% at 50% -10%, rgba(242, 120, 143, .16) 0%, rgba(23, 17, 26, 0) 62%) !important;
    background-color: #17111a !important;
}
html.dark .bg-layer { opacity: 1 !important; }

/* 足迹页标题统一成衬线 + 字距，与站内小标题同族 */
.title-card h1,
.title-card h1 span {
    font-family: "Songti SC", "Noto Serif SC", serif !important;
    font-weight: 500 !important;
    letter-spacing: .12em !important;
    color: #f4ece3 !important;
    text-shadow: none !important;
}
.title-card .sub,
.title-card .en {
    letter-spacing: .28em !important;
    color: rgba(217, 180, 139, .78) !important;
    font-size: 9.5px !important;
}

/* ========== 移动端响应式与冗余清理 (Phase 1 Fix) ========== */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    /* 隐藏相册右下角重复的返回按钮，仅保留左侧精致胶囊 */
    .home-btn {
        display: none !important;
    }

    .brave-home-fab {
        left: 14px !important;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 999 !important;
    }

    /* 顶部分类胶囊栏支持横向手势平滑滑动，杜绝换行挤压 */
    .header-stats {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        scrollbar-width: none !important;
        justify-content: flex-start !important;
    }
    .header-stats::-webkit-scrollbar {
        display: none !important;
    }
    .nav-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* 足迹页控制条与标题避让 */
    .title-card {
        top: 14px !important;
        left: 14px !important;
        max-width: calc(100vw - 28px) !important;
        padding: 12px 14px !important;
    }
    .dock-control {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100vw - 28px) !important;
        gap: 6px !important;
    }
    .dock-control button,
    .dock-control .dock-btn {
        white-space: nowrap !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

/* 移动端全站滚动条美化与防溢出 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        scrollbar-gutter: auto !important;
    }
}
