* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #eef0f3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 16px 12px 40px;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* 导航栏 */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}
.nav-bar h1 {
    font-size: 1.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1e2b3c, #2c4c5e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}
.back-btn {
    background: rgba(0,0,0,0.05);
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c6b2f;
    cursor: pointer;
    transition: 0.2s;
}
.back-btn:hover {
    background: rgba(0,0,0,0.1);
}

/* 朋友圈卡片公用样式 */
.post-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.1s ease;
}

/* 可截图区域（不含下方按钮） */
.screenshot-area {
    padding: 20px 20px 16px;
}

/* 列表模式卡片内容区 */
.timeline .post-card .card-content {
    padding: 20px 20px 16px;
}

/* 头部：头像+昵称+时间 */
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #c0dbea, #9ab3c5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #2c3e2f;
    flex-shrink: 0;
}
.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.info {
    flex: 1;
}
.name {
    font-weight: 630;
    font-size: 1rem;
    color: #1f2e3a;
    margin-bottom: 4px;
}
.time {
    font-size: 0.7rem;
    color: #9aaebf;
    letter-spacing: -0.2px;
}
.post-text {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #1f2f3a;
    margin-bottom: 14px;
    word-break: break-word;
    white-space: pre-wrap;
}

/* 图片网格 */
.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.images-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 100%;
}
.images-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}
.grid-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background-color: #f0f2f5;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 外部链接区域（分享的链接） */
.external-link {
    background-color: #f5f7fa;
    border-radius: 14px;
    padding: 10px 14px;
    margin: 8px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0.5px solid #e9edf2;
}
.link-icon {
    font-size: 1.25rem;
}
.link-info {
    flex: 1;
    overflow: hidden;
}
.link-url {
    font-size: 0.75rem;
    color: #3b7cbf;
    word-break: break-all;
    text-decoration: none;
}
.link-url:hover {
    text-decoration: underline;
}
.link-label {
    font-size: 0.7rem;
    color: #8f9eae;
    margin-bottom: 2px;
}

/* 操作按钮组（分享链接 + 保存图片） */
.action-buttons {
    display: flex;
    gap: 14px;
    padding: 4px 20px 20px 20px;
    border-top: 0.5px solid #eff2f6;
    margin-top: 4px;
}
.action-btn {
    flex: 1;
    background: #f2f4f8;
    border: none;
    padding: 10px 0;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c5a6e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.action-btn:active {
    background: #e4e8ef;
    transform: scale(0.97);
}

/* 查看全部朋友圈按钮 */
.view-all-btn {
    background: transparent;
    border: 1px solid #cddfe7;
    border-radius: 60px;
    padding: 12px;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2b6a7a;
    margin-top: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.view-all-btn:hover {
    background-color: #fff;
    border-color: #a0c0cf;
}

/* 时间线卡片可点击 */
.timeline-card-click {
    cursor: pointer;
    transition: opacity 0.15s;
}
.timeline-card-click:active {
    opacity: 0.7;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 48px 20px;
    color: #8b9aad;
    background: white;
    border-radius: 32px;
}

footer {
    text-align: center;
    font-size: 0.7rem;
    color: #bbccdd;
    margin-top: 32px;
}