/* 资料查询模块样式（落地页 + 详情页注入的检索条） */

/* ============ 落地页 ============ */
* { box-sizing: border-box; }
body.res-landing {
    margin: 0;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef1f6 100%);
    color: #1f2937;
    min-height: 100vh;
    line-height: 1.6;
}
.res-topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e3e8ef;
    padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
}
.res-brand { font-weight: 700; font-size: 17px; text-decoration: none; color: #1f2937; }
.res-home { font-size: 13px; color: #5b6675; text-decoration: none; }
.res-home:hover { color: #4f7cff; }
.res-main { max-width: 1000px; margin: 0 auto; padding: 48px 24px 64px; }
.res-main h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.5px; }
.res-sub { color: #5b6675; margin: 0 0 32px; font-size: 15px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.res-card {
    background: #fff; border: 1px solid #e3e8ef; border-radius: 16px;
    padding: 24px; color: inherit; text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: 0 6px 20px rgba(31, 41, 55, .06);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.res-card:hover { transform: translateY(-5px); border-color: #c7d0dd; box-shadow: 0 14px 40px rgba(31, 41, 55, .12); }
.res-icon {
    width: 52px; height: 52px; border-radius: 13px;
    background: linear-gradient(135deg, rgba(79, 124, 255, .14), rgba(124, 92, 255, .1));
    border: 1px solid rgba(79, 124, 255, .3);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 14px;
}
.res-name { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.res-desc { font-size: 13.5px; color: #5b6675; line-height: 1.6; margin-bottom: 14px; flex: 1; }
.res-meta { font-size: 12px; color: #5b6675; margin-bottom: 14px; }
.res-enter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #4f7cff; }
.res-enter .arrow { transition: transform .2s; }
.res-card:hover .res-enter .arrow { transform: translateX(4px); }

/* ============ 详情页注入的检索条（叠加在原始文档之上） ============ */
#res-search {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 10px 22px;
    display: flex; gap: 10px; align-items: center;
}
#res-search .res-back { font-size: 13px; color: var(--accent, #2563eb); text-decoration: none; white-space: nowrap; }
#res-search #res-q {
    flex: 1; min-width: 0;
    padding: 9px 13px; border: 1px solid var(--border, #e2e8f0); border-radius: 9px;
    font-size: 14px; font-family: inherit; outline: none;
}
#res-search #res-q:focus { border-color: var(--accent, #2563eb); box-shadow: 0 0 0 3px var(--accent-soft, #eff6ff); }
#res-search #res-count { font-size: 12.5px; color: var(--muted, #64748b); white-space: nowrap; }
#res-search #res-clear {
    padding: 8px 14px; border: 1px solid var(--border, #e2e8f0); background: #fff;
    border-radius: 9px; font-size: 13px; color: var(--text, #1a202c); cursor: pointer; font-family: inherit;
}
#res-search #res-clear:hover { border-color: var(--accent, #2563eb); color: var(--accent, #2563eb); }
/* 把原始文档的 sticky 头部与左侧导航推到检索条下方（检索条约 54–58px 高） */
header { top: 56px !important; }
nav { top: 116px !important; }

/* ============ 页脚（与门户主页备案信息一致） ============ */
.res-footer {
    border-top: 1px solid #e3e8ef;
    background: rgba(255, 255, 255, 0.92);
    padding: 24px 32px;
    margin-top: 40px;
}
.res-footer .footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; font-size: 13px; color: #5b6675;
}
.res-footer .footer-inner .left { display: flex; align-items: center; gap: 8px; }
.res-footer .footer-inner .right { display: flex; gap: 18px; }
.res-footer .footer-inner a { color: #5b6675; text-decoration: none; transition: color 0.2s; }
.res-footer .footer-inner a:hover { color: #4f7cff; }
.res-footer .footer-inner .sep { color: #9aa5b5; }
.res-footer .footer-compliance {
    max-width: 1200px; margin: 18px auto 0; padding-top: 14px;
    border-top: 1px solid #eef1f6;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px 18px; color: #9aa5b5; font-size: 12px; line-height: 1.7;
}
.res-footer .footer-compliance a { color: #5b6675; text-decoration: none; }
.res-footer .footer-compliance a:hover { color: #4f7cff; }
.res-footer .footer-compliance .sep { color: #9aa5b5; }
.res-footer .footer-beian { display: inline-flex; align-items: center; gap: 6px; min-height: 20px; }
.res-footer .footer-beian img { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }

/* 卡片点击水波纹（与门户主页一致） */
.card-ripple { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,159,215,.35); transform: scale(0); animation: cardRipple .6s ease-out forwards; pointer-events: none; z-index: 5; }
@keyframes cardRipple { to { transform: scale(40); opacity: 0; } }
