/* 基本变量（可由 Telegram 主题覆盖） */
:root {
    --tg-bg: #ffffff;
    --tg-text: #111;
    --tg-accent: #2a8ae6;
    --container-max: 720px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #f3718d61!important;
    color: var(--tg-text);
    -webkit-text-size-adjust: 100%;
}

/* container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px;
    align-items: center;
    justify-content: space-between;
    display: flex;
}

/* header */
.app-header {
    background: linear-gradient(-90deg, #a258c1, #0374bd 47%, #29b9c9);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
}
.app-header h1 {
    margin: 0;
    font-size: 18px;
}
#user-area { font-size: 14px; opacity: 0.95; }
.empty{
    height: 125px;
}
#user-area>svg{
    top: 6px;
    position: relative;
}
/* content */
.app-content { padding: 14px 12px 92px; }
#status.muted { color: #666; margin-bottom: 8px; }
#data-list > .item {
    padding: 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
    margin-bottom: 8px;
}

/* controls */
.controls { margin-top: 12px; }
button {
    background: var(--tg-accent);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
}

/* 固定底部（防止被 Telegram 内置工具栏遮挡） */
.app-footer {
    opacity: .9;
    background: linear-gradient(-90deg, #fbfbfb, #c9e9fd 47%, #29b9c9);
    color: white;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    /*background: var(--tg-bg);*/
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 10px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 12px;
}

/* 响应式：小屏时减小文字 */
@media (max-width:420px) {
    .app-header h1 { font-size: 16px; }
    button { font-size: 15px; padding: 9px; }
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #f5f5f5;
}

/* 顶部tab */
.tab-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-item {
    flex-shrink: 0;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
}
.tab-item.active {
    color: #007aff;
    border-bottom: 2px solid #007aff;
}

/* 图片列表 */
.list-container {
    padding: 10px;
    margin-bottom: -11px;
}
.image-card {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.image-card img {
    width: 100%;
    display: block;
}
.image-card .title {
    padding: 6px 6px 15px;
    font-size: 14px;
    border-top: 1px dashed #e5e5e5;
}
.beforeText{
    font-size: 16px;
    text-align: center;
    padding: 10px 0;
}
/* 下拉刷新提示 */
.pull-refresh {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 8px 0;
}

/* 加载更多提示 */
.load-more {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 8px 0;
}

.gradient-btn {
    display: flex;
    padding: 5px 18px;
    color: white;
    border: none;
    border-radius: 25px;
    background: linear-gradient(270deg, #ff7a18, #af002d, #319197);
    background-size: 600% 600%;
    animation: gradientMove 5s ease infinite;
    font-size: 16px;
    cursor: pointer;
}
.gradient-btn>svg{
    position: relative;
    top: -3px;
    left: -5px;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.searchBox{
    display: flex;
    border: 1px solid white;
    border-radius: 24px;
    padding: 2px 14px;
    font-size: 15px;
}
.bottomTip{
    padding: 10px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 50px;
}
.tip{
    width: 200px;
    font-size: 12px;
}