@import url("https://fontsapi.zeoseven.com/83/main/result.css");

/* ============================================================
   影视大全 · 首页/搜索（基于 quanpan 参考站 1:1 复刻）
   本文件仅在首页加载，不依赖旧 app.css。
   仅补充：结果卡片网格、播放按钮、加载更多、返回、搜索按钮底色等
   参考站没有的「影片海报」组件样式。其余均沿用参考站 main.css/orbit.css。
   ============================================================ */

/* 首页不加载 app.css，确保 #app 透明，使轨道动画(z-index:-1)正常透出 */
#app { background: transparent; }

/* 居中 + 纵向排布，使版权信息可贴底（参考站 .home 已 max-width:720px，这里补 margin 居中）
   #home 撑满整个视口高度（页面无顶栏，原 calc(100vh-66px) 会在底部多出 66px 空隙） */
main.home { margin: 0 auto; }
#home { min-height: 100vh; display: flex; flex-direction: column; }
body.page-searching #home { min-height: 100vh; }

/* ===== 首页 hero：主体内容上移到屏幕上半部分 =====
   logo 显示逻辑沿用参考站原版：桌面(≥768px) 显示大标题 slogan、隐藏图片 logo；
   手机(≤720px) 显示图片 logo、隐藏标题。
   仅压缩品牌区高度/下间距（原版 300/230、下间距 40/35），让标题和搜索框贴近屏幕上部 */
.brand { height: 180px; margin-bottom: 24px; }
@media (max-width: 720px) {
    .brand { height: 120px; margin-bottom: 18px; }
}

/* ===== 首页品牌区：标题文字换成 logo 图标（电脑端；手机端原版即如此，副标题三项保留） =====
   main.css 桌面端默认隐藏 .brand-logo、显示 .brand-slogan，这里对调；
   logo 宽度沿用 main.css 的 180px */
.brand .brand-logo { display: inline-block; }
.brand .brand-slogan { display: none; }

/* 聚焦搜索框时保持同样高度，避免上下跳动 */
body:not(.page-searching) .home:has(.search-input:focus) .brand { height: 180px; }
@media (max-width: 720px) {
    body:not(.page-searching) .home:has(.search-input:focus) .brand { height: 120px; }
}

/* 版权信息贴底（内容不足一屏时停在页面底部，内容超长时自然落在末尾），
   上方加一条细分割线，下内边距收小让文字贴近屏幕底部 */
.footbar {
    margin-top: 0;
    border-top: 1px solid #ebedf0;
    padding: 14px 0 12px;
}

/* 友情链接：位于底栏分割线上方，自身顶部再加一条分割线；
   整行居中不换行，链接过多时容器内左右滑动；
   margin-top:auto 负责贴底（紧挨版权栏，无多余间距） */
.friendlinks {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 10px;
    border-top: 1px solid #ebedf0;   /* 友情链接上方的分割线 */
    font-size: 13px;
    line-height: 1.6;
}
.fl-label {
    flex: 0 0 auto;
    color: #888;
    white-space: nowrap;
}
.fl-scroll {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox 隐藏滚动条 */
}
.fl-scroll::-webkit-scrollbar { display: none; }  /* WebKit 隐藏滚动条 */
.fl-scroll a {
    flex: 0 0 auto;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}
.fl-scroll a:hover { color: #1677ff; text-decoration: underline; }

/* 手机端：友链靠左（与桌面居中区分），其余不变 */
@media (max-width: 720px) {
    .friendlinks { justify-content: flex-start; }
    .fl-scroll { justify-content: flex-start; }
    .fabs { bottom: 92px; }   /* 手机端两个按钮稍微往上一点 */
}

/* 首页不加载 app.css，「回到顶部」按钮无样式会露成一个裸箭头，直接隐藏 */
.btt { display: none; }

/* ===== 右下角圆形悬浮按钮（观影记录 / 关于本站） ===== */
.fabs {
    position: fixed;
    right: 16px;
    bottom: 76px;                 /* 位于回到顶部按钮上方 */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}
.fab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e3e6ea;    /* 浅灰色细线条描边 */
    background: #fff;
    color: #1677ff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.fab:hover { transform: translateY(-2px); border-color: #c9cdd4; }
.fab:active { transform: none; }

/* ===== 弹窗：白色主体、蓝色点缀（布局参考参考图） ===== */
.modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    width: min(400px, 94vw);
    max-height: 76vh;
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
}
.modal-head {
    display: flex;
    align-items: center;
    padding: 2px 4px 10px;
    border-bottom: 1px solid #eef1f6;
    flex: 0 0 auto;
}
.mh-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
.mh-title i { color: #1677ff; }
.mh-clear {
    margin-left: auto;
    border: none;
    background: none;
    cursor: pointer;
    color: #1677ff;
    font-size: 13px;
    padding: 2px 4px;
}
.mh-clear:hover { text-decoration: underline; }
.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 2px;
}
.h-empty { text-align: center; color: #999; font-size: 13px; padding: 26px 0; }
.h-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .12s;
}
.h-item:hover { background: #f2f7ff; }
.h-pic {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f2f5;
    flex: 0 0 auto;
}
.h-info { min-width: 0; }
.h-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.h-line { font-size: 12px; color: #8a94a6; margin-top: 3px; }
.about-body p { font-size: 13px; color: #4a5568; line-height: 1.8; margin: 0 0 8px; }
.modal-close-btn {
    flex: 0 0 auto;
    margin-top: 8px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #f2f4f8;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    transition: background .12s;
}
.modal-close-btn:hover { background: #e8ebf1; }

/* 搜索/结果态：品牌收缩。logo 尺寸沿用参考站收缩态——
   手机 150px 宽、桌面 180px 宽，高度按原图比例自适应（不固定高度，避免被放大）。
   高度/下间距微调：桌面缩小 logo 与搜索框间距；手机增加 logo 距顶部的距离 */
.brand.shrink { align-items: center; }
.brand.shrink { height: 100px; margin-bottom: 2px; }
@media (max-width: 720px) {
    .brand.shrink { height: 70px; margin-bottom: 2px; }
}
.brand.shrink .brand-subtitle { display: none; }
.brand.shrink .brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}
.brand.shrink .brand-logo a { display: flex; align-items: center; }
.brand.shrink .brand-logo img {
    width: 150px;
    height: auto;
    display: block;
}
@media (min-width: 768px) {
    .brand.shrink .brand-logo img { width: 180px; }
}

/* 搜索按钮：完全沿用 main.css 原样（无背景、图标渐变文字），此处不再覆盖 */

/* ===== 搜索栏颜色对齐原版（影视大全原版 .home-search-in）：仅改颜色，不动布局/圆角 =====
   非聚焦：浅灰描边 #e2e5ea；聚焦：主题蓝 #1677ff + 淡蓝光晕；按钮图标主题蓝 */
.search-form { border-color: #e2e5ea; }
.search-form:focus-within {
    border-color: #1677ff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, .1);
}
.search-btn i { color: #1677ff; }

/* ===== 结果区 ===== */
.result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 14px;
}
.result-back {
    border: none;
    background: #f2f4f8;
    color: #374151;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.result-back:hover { background: #e7ebf3; }
/* 返回箭头（向左三角） */
.result-back .qp-arrow {
    border-right-color: #374151;
    border-left-color: transparent;
}
.result-meta {
    font-size: 14px;
    color: #6b7280;
}
.result-meta em {
    color: #111;
    font-style: normal;
    font-weight: 700;
}

/* 源分类标签栏：main.css 的 .tabbar 用 -15px 负边距依赖父级内边距，
   本页 .result-main 无左右内边距，这里显式对齐（与卡片 15px 一致）。
   上下各加一条细分割线，与搜索框、结果卡片分隔 */
.result-main .tabbar {
    margin: 0;
    border-top: 1px solid #ebedf0;
    border-bottom: 1px solid #ebedf0;
}
.result-main .tab-box {
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 源分类标签按钮缩小 */
.tab-item { padding: 4px 9px 6px; margin-right: 4px; border-radius: 7px; }
.tab-name { font-size: 13px; }

/* 标签配色：全部白底；下方小横条选中为蓝色、未选中保持灰色（含未选中悬停） */
.result-main .tab-item { background: #fff; }
.result-main .tab-item.active .tab-count { background: #1677ff; }
.result-main .tab-item:not(.active):hover .tab-count { background: #cacaca; }

/* ===== 结果区容器：参考原版 .search-wrap（最大 1200px 居中，侧边距 16px / 手机 12px） =====
   关键：父级 main.home 是 720px 定宽，子元素设 max-width 无效，
   必须用负外边距「破格」跳出父级；桌面端留 24px 屏边（吸收滚动条宽度，不产生横向滚动） */
.result-main {
    --rw: min(1168px, calc(100vw - 48px)); /* 1168 + 两侧内边距16 = 1200 */
    width: var(--rw);
    margin-left: calc((100% - var(--rw)) / 2);
    margin-right: calc((100% - var(--rw)) / 2);
    /* 上内边距沿用 main.css 的 25px（分割线与搜索框的间距），不能被简写清零 */
    padding: 25px 16px 0;
}
@media (max-width: 720px) {
    .result-main {
        --rw: calc(100vw - 20px); /* 两侧各 10px */
        padding: 25px 10px 0;
    }
}

/* 卡片网格：1:1 复刻参考站（看看鸭）搜索结果大卡布局
   左侧海报浮出卡片顶部，右侧信息，底部灰条托起播放/来源按钮。
   桌面(≥993px) 3 列；平板(769~992px) 2 列；手机(≤768px) 1 列 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 12px;
    /* 行距 52px：给上浮 45px 的海报留空间，避免压住上一行（同参考 margin-bottom:50px） */
    row-gap: 52px;
    /* 顶部留白：避免第一行上浮的海报压住来源筛选栏 */
    margin-top: 56px;
}
@media (min-width: 769px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); column-gap: 14px; row-gap: 56px; }
}
@media (min-width: 993px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); column-gap: 16px; row-gap: 56px; }
}
/* 卡片主体：浅灰底（页面白底需要层次）、微阴影、8px 圆角、内边距 20/20/10（同参考 .module-card-item） */
.vc {
    position: relative;
    /* 关键：网格列默认最小宽度=内容宽度，长主演/长片名会把整列撑宽导致三列不等宽+横向滚动；
       min-width:0 强制严格等宽，超长文本由内部 overflow:hidden 省略号裁剪 */
    min-width: 0;
    background: #f7f8fa;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.03);
    /* 浅灰描边线条：让卡片在白底页面上有轮廓层次 */
    border: 1px solid #e3e6ea;
    padding: 20px 20px 10px;
    border-radius: 8px;
    min-height: 128px;
}
/* 清除海报浮动 */
.vc::after { content: ''; display: block; clear: both; }
/* 类型角标：卡片右上角斜切标签（同参考 .module-card-item-class） */
.vc-cat {
    position: absolute;
    right: 0;
    top: -25px;
    height: 40px;
    background: #e9ecef;
    color: #616161;
    font-size: 13px;
    padding: 0 10px 0 2px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 26px;
    z-index: -1;
    overflow: hidden;
    white-space: nowrap;
    max-width: 70%;
    padding-left: 18px;
}
.vc-cat::after {
    content: '';
    position: absolute;
    left: -13px;
    top: 0;
    background: #e9ecef;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    transform: skewX(-20deg);
    z-index: -1;
}
/* 左侧海报：120px 宽，向上浮出卡片 45px（同参考 .module-card-item-poster） */
.vc-poster {
    width: 120px;
    margin: -45px 0 0 -10px;
    float: left;
    position: relative;
    z-index: 1;
    display: block;
    text-decoration: none;
}
/* 封面：140% 比例、8px 圆角（同参考 .module-item-cover） */
.vc-cover {
    position: relative;
    height: 0;
    padding-top: 140%;
    background: #f4f5f7;
    overflow: hidden;
    border-radius: 8px;
}
.vc-cover img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
/* 备注角标：封面底部渐变白字居中（同参考 .module-item-note） */
.vc-note {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 30px 5px 10px;
    pointer-events: none;
    color: #fff;
    font-weight: 500;
    text-align: center;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 右侧信息区（同参考 .module-card-item-info） */
.vc-info {
    margin-left: 130px;
    min-height: 103px;
}
.vc-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vc-title a { color: #1a1a1a; text-decoration: none; }
/* 信息行：13px 灰字，单行省略（同参考 .module-info-item） */
.vc-line {
    font-size: 13px;
    padding-bottom: 3px;
    color: #757575;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 斜杠分隔符（同参考 .slash） */
.vc-line .slash {
    padding: 0 7px;
    color: #c2c6d0;
    font-size: 12px;
    vertical-align: top;
}
.vc-line .slash:last-child { display: none; }
/* 底部灰条：托起两个按钮（同参考 .module-card-item-footer）；比浅灰卡片更深一档保持层次 */
.vc-footer {
    background: #edf0f4;
    height: 30px;
    margin: 0 -10px;
    border-radius: 8px;
}
.vc-footer a {
    margin: 0 0 0 20px;
    z-index: 1;
    position: relative;
    top: -15px;
    float: left;
    padding: 0 15px;
    line-height: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    max-width: calc(100% - 110px);
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 播放按钮：蓝色渐变实心，去描边，明显大于来源按钮
   （选择器带 .vc-footer 前缀提高优先级，否则会被上面的 .vc-footer a 覆盖） */
.vc-footer a.vc-btn-play {
    background: linear-gradient(to right, #4096ff 0%, #1677ff 100%);
    color: #fff;
    height: 34px;
    line-height: 34px;
    padding: 0 18px;
    font-size: 14px;
    top: -17px;
}
.vc-btn-play .qp-play {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
    margin-right: 5px;
    vertical-align: 1px;
}
.vc-btn-play span { font-weight: 700; }
/* 来源按钮：白底蓝字，去描边（选择器带前缀提高优先级） */
.vc-footer a.vc-btn-src {
    background: #fff;
    color: #1677ff;
    height: 26px;
    line-height: 26px;
    padding: 0 12px;
    font-size: 12px;
    top: -13px;
}
.vc-btn-src span { font-weight: 700; }

/* ===== 首页左下角悬浮动图（仅手机端显示） ===== */
.fab-gif{
    position:fixed;
    left:12px;bottom:92px;
    display:none;            /* 默认隐藏，仅手机端显示 */
    z-index:60;
}
.fab-gif-img{display:block;max-width:84px;max-height:84px;width:auto;height:auto}
@media (max-width:768px){
    .fab-gif{display:block}
}
/* 手机端微调：字号、按钮间距（同参考 ≤559px 断点） */
@media (max-width: 560px) {
    .vc { padding: 16px 16px 10px; }
    .vc-poster { width: 104px; margin: -40px 0 0 -6px; }
    .vc-info { margin-left: 112px; min-height: 90px; }
    .vc-title { font-size: 15px; }
    .vc-line { font-size: 12px; }
    .vc-footer a { margin-left: 15px; font-size: 12px; }
}

/* ===== 加载更多 ===== */
.loadmore {
    text-align: center;
    padding: 20px 15px 6px;
}
.lm-btn {
    display: inline-block;
    min-width: 168px;
    padding: 11px 26px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #5268ff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.lm-btn:hover { background: #f5f7ff; border-color: #c9d2ff; }
.lm-btn:disabled {
    color: #9aa0ad;
    background: #fafbfc;
    border-color: #eef0f4;
    cursor: default;
}
.lm-end {
    color: #aab1bd;
    font-size: 13px;
    padding: 4px 0;
}

/* 返回箭头三角（翻页已移除，仅返回按钮复用） */
.qp-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent #374151;
}

/* ===== 首页搜索框「大家都在搜」面板（沿用原版 hot-panel 结构，变量改为本站点色） =====
   主题色 #5268ff，软底 #f3f4f8，次要文字 #4b5563，分割线 #ebedf0 */
.search-form.hot-wrap { position: relative; z-index: 20; }
.hot-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
    border: 1px solid #ebedf0;
}
.hot-title {
    font-size: 15px;
    font-weight: 500;
    color: #8a8f99;
    margin: 0 0 16px;
    letter-spacing: .2px;
    text-align: left;
}
.hot-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #f3f4f8;
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.hot-tag:hover {
    background: rgba(82,104,255,.08);
    color: #5268ff;
    transform: translateY(-1px);
}
/* 前三名热词：原版蓝色系 #1677ff */
.hot-tag-hot {
    background: rgba(22,119,255,.08);
    color: #1677ff;
    font-weight: 500;
}
.hot-tag-hot:hover { background: rgba(22,119,255,.14); }
.hot-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1677ff;
    box-shadow: 0 0 0 4px rgba(22,119,255,.12);
    animation: hotDotBreathe 1.8s ease-in-out infinite;
}
@keyframes hotDotBreathe {
    0%, 100% { opacity: .55; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.08); }
}
/* 面板淡入淡出 */
.hotfade-enter-active, .hotfade-leave-active { transition: opacity .2s ease, transform .2s ease; }
.hotfade-enter-from, .hotfade-leave-to { opacity: 0; transform: translateY(-6px); }
@media (max-width: 720px) {
    .hot-panel { padding: 16px 16px 18px; border-radius: 14px; }
    .hot-title { font-size: 14px; margin-bottom: 12px; }
    .hot-row { gap: 8px; }
    .hot-tag { padding: 6px 12px; font-size: 13px; }
}

/* ====== 全站第三方圆体字（Chill Round Gothic） ====== */
body, input, textarea, select, button {
    font-family: "Chill Round Gothic", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
    font-weight: normal;
}
