/* ========================================
   鱼获墙 - 共享样式表 v20260620
   品牌色: #0ea5a0 (蓝绿色)
======================================== */

/* ============ CSS 变量 ============ */
:root {
    --brand-color: #0ea5a0;
    --brand-light: rgba(14,165,160,0.1);
    --brand-gradient: linear-gradient(135deg, #0ea5a0, #06b6d4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 15px rgba(14,165,160,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --nav-height: 65px;
    --page-bg: #f0f7f7;
}

/* ============ Reset ============ */
*, ::before, ::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 85px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============ 页面基础 ============ */
.page { min-height: 100vh; background: var(--page-bg); }

/* ============ 底部导航 ============ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 1000;
    padding: 0 8px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999999;
    transition: color 0.3s;
    padding: 4px 0;
}
.nav-item.active { color: var(--brand-color); }
.nav-item:active { opacity: 0.8; }

.nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-icon svg { width: 24px; height: 24px; }

.nav-text { font-size: 11px; }

.nav-publish {
    width: 50px;
    height: 50px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-publish:active { transform: scale(0.95); }
.nav-publish svg { width: 26px; height: 26px; }

/* ============ Toast 提示 ============ */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
}
.toast.show { animation: toastFade 0.3s ease; }
@keyframes toastFade {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============ 空状态 ============ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    opacity: 0.6;
}
.empty-state-icon svg { width: 100%; height: 100%; }
.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.empty-state-text {
    font-size: 14px;
    color: #999999;
    margin-bottom: 20px;
}
.empty-state-btn {
    display: inline-block;
    background: var(--brand-gradient);
    color: #fff;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
}

/* ============ 骨架屏 Loading ============ */
.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e8e8e8 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.skeleton-img {
    width: 100%;
    height: 160px;
    border-radius: 0;
}
.skeleton-info { padding: 12px; }
.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}
.skeleton-line.short { width: 60%; height: 12px; }

/* ============ Loading 加载中 ============ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 8px;
    color: #999999;
    font-size: 14px;
}
.loading svg {
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 下拉刷新提示 ============ */
.pull-refresh {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 12px;
    text-align: center;
    background: var(--brand-color);
    color: #fff;
    font-size: 14px;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s;
}
.pull-refresh.show { transform: translateY(0); }
.pull-refresh svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}
.pull-refresh.idle svg { animation: none; }

/* ============ 点赞心形 SVG ============ */
.heart-svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}
.heart-svg.liked { fill: #ff6b6b; stroke: #ff6b6b; }
.heart-svg:not(.liked) { fill: none; stroke: #999; }
.fish-card-like:active .heart-svg { transform: scale(1.2); }

/* ============ 滚动条隐藏 ============ */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ============ 渐变遮罩提示 ============ */
.scroll-hint {
    position: relative;
}
.scroll-hint::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, var(--page-bg));
    pointer-events: none;
}


/* 微信看一看风格卡片 v20260702 */
.fish-card-body{padding:10px 12px 12px}
.fish-card-title{font-size:15px;font-weight:600;color:#1a1a1a;margin-bottom:6px;line-height:1.4}
.fish-card-user{color:#576b95;font-weight:500}
.fish-card-location{display:flex;align-items:center;gap:4px;font-size:13px;color:#999;margin-bottom:8px}
.fish-card-location svg{width:14px;height:14px;flex-shrink:0;stroke:#999;fill:none}
.fish-card-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#999}
.fish-card-meta-left{display:flex;align-items:center;gap:8px}
.fish-card-time{color:#bbb;font-size:12px}
.fish-card-group{background:#f0f0f0;color:#666;padding:2px 6px;border-radius:4px;font-size:10px}
.fish-card-actions{display:flex;align-items:center;gap:14px}
.fish-card-like{cursor:pointer;display:flex;align-items:center;gap:4px;color:#999;font-size:12px}
.fish-card-like.liked .heart-icon{fill:#e74c3c;stroke:#e74c3c}
.fish-card-like.liked{color:#e74c3c}
.fish-card-share{cursor:pointer;display:flex;align-items:center}
.fish-card-share svg{width:16px;height:16px;stroke:#999}
.fish-card-image{width:100%;max-height:280px;object-fit:cover;display:block;background:#f0f0f0}
/* ===== 鱼获墙 v2 修复样式 ===== */

/* 瀑布流容器 - 确保两列 */
.waterfall {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}
.waterfall-column {
    width: calc(50% - 5px) !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 鱼获卡片 - 放大字体 */
.fish-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.fish-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.fish-card-image {
    width: 100%;
    display: block;
    background: #eee;
}
.fish-card-images {
    position: relative;
    overflow: hidden;
}
.fish-card-img-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}
.fish-card-title {
    padding: 10px 10px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fish-card-location {
    padding: 0 10px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}
.fish-card-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.fish-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px 10px;
    font-size: 12px;
    color: #999;
}
.fish-card-meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fish-card-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fish-card-time {
    font-size: 12px;
    color: #999;
}
.fish-card-group {
    background: #e8f4fd;
    color: #2d5a87;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.fish-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fish-card-like {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
}
.fish-card-like.liked {
    color: #ff4d4f;
}
.fish-card-like .heart-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}
.fish-card-like.liked .heart-icon {
    fill: #ff4d4f;
    transform: scale(1.1);
}
.fish-card-share {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}
.fish-card-share:hover {
    color: #2d5a87;
}
.fish-card-share svg {
    width: 16px;
    height: 16px;
}

/* 底部导航 - 放大 */
/* 点赞动画 */
.heart-icon.animate {
    animation: heartBeat 0.6s ease-in-out;
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.like-plus {
    position: absolute;
    color: #ff4d4f;
    font-size: 12px;
    font-weight: bold;
    animation: floatUp 0.7s ease-out forwards;
    pointer-events: none;
}
@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
