/* 
  文件名称：css/intro.css
  功能描述：首页入场交互样式 - 包含仿移动端聊天入场动画、图片占位渐变背景
  关联页面：index.html
*/

/* ── 横幅占位 ── */
.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.banner-bg-1 {
    background: linear-gradient(135deg, #1a3a5c, #2a6090);
}

.banner-bg-2 {
    background: linear-gradient(135deg, #0f2540, #1a5a3a);
}

.banner-bg-3 {
    background: linear-gradient(135deg, #2a1a5c, #1a3a5c);
}

/* ── 仿微信入场动画 ── */
#intro-overlay {
    position: fixed;
    inset: 0;
    background: #1c1c1e;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
}

/* 手机外壳 */
.intro-phone {
    width: 340px;
    height: 520px;
    background: #ededed;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

/* 系统状态栏 */
.intro-statusbar {
    background: #ededed;
    padding: 14px 20px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #1c1c1e;
    flex-shrink: 0;
}

.intro-statusbar-icons {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 13px;
}

/* 微信顶部导航栏 */
.intro-chat-header {
    background: #ededed;
    padding: 8px 16px 12px;
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #d8d8d8;
    position: relative;
}

.intro-back-btn {
    color: #1677ff;
    font-size: 17px;
    margin-right: 4px;
    line-height: 1;
}

.intro-chat-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1c1c1e;
}

.intro-chat-more {
    color: #1c1c1e;
    font-size: 20px;
    letter-spacing: -1px;
}

/* 消息区域 */
.intro-messages {
    background: #ededed;
    padding: 12px 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

/* 时间戳 */
.msg-timestamp {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin: 8px 0 4px;
}

/* 消息行（含头像） */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 3px 0;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.35s ease;
}

.msg-row.show {
    opacity: 1;
    transform: translateY(0);
}

.msg-row.row-right {
    flex-direction: row-reverse;
}

/* 头像 */
.msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.msg-avatar.av-left {
    background: #5a9fd4;
}

.msg-avatar.av-right {
    background: #7cb87c;
}

/* 气泡 */
.msg-bubble {
    max-width: 68%;
    padding: 9px 12px;
    font-size: 15px;
    line-height: 1.55;
    position: relative;
    word-break: break-word;
    white-space: pre-line;
}

.msg-bubble.bubble-left {
    background: #fff;
    color: #1c1c1e;
    border-radius: 4px 12px 12px 12px;
}

.msg-bubble.bubble-right {
    background: #95ec69;
    color: #1c1c1e;
    border-radius: 12px 4px 12px 12px;
}

.msg-link {
    color: #1677ff;
    text-decoration: underline;
    word-break: break-all;
}

/* 底部输入栏（装饰） */
.intro-input-bar {
    background: #f5f5f5;
    border-top: 1px solid #d8d8d8;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.intro-input-fake {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    height: 34px;
    border: 1px solid #d8d8d8;
}

.intro-input-icon {
    width: 28px;
    height: 28px;
    background: #ccc;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 跳过提示 */
.intro-skip {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: -apple-system, "PingFang SC", sans-serif;
}

.intro-skip:hover {
    color: rgba(255, 255, 255, 0.5);
}

@keyframes introPulse {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

/* ── 陈旧日期样式（首页新闻列表） ── */
.news-date-stale .day {
    color: #aaa !important;
}

.news-title-stale {
    color: #999 !important;
}

.stale-badge {
    display: inline-block;
    font-size: 10px;
    background: #f8d7da;
    color: #c0392b;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}
