/* ============================================================
   xunwai.com - 全站视觉增强（增量样式，2026-09-05）
   仅做锦上添花：动效/阴影/滚动条/焦点细节，不影响原布局
   ============================================================ */

/* 全局细节 */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* 卡片更精致的悬停质感 */
.house-card, .gateway-card, .result-item, .news-card {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.house-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20, 42, 74, .14), 0 2px 8px rgba(20, 42, 74, .06);
}
.gateway-card:hover { transform: translateY(-4px); }
.result-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 42, 74, .10); }

/* 图片缩放更顺滑 */
.card-image img, .flow-card .fc-cover, .cover-img {
    transition: transform .45s cubic-bezier(.25,.8,.3,1), opacity .3s;
}
.house-card:hover .card-image img { transform: scale(1.06); }

/* 输入框焦点光晕 */
.form-input:focus, .search-box-hero input:focus, input[type="text"]:focus,
input[type="password"]:focus, input[type="tel"]:focus, input[type="search"]:focus,
textarea:focus, select:focus {
    border-color: #C8A45C !important;
    box-shadow: 0 0 0 3px rgba(200, 164, 92, .18) !important;
    outline: none;
}

/* 主按钮悬停微动 */
.btn-submit, .btn-post, .btn, .btn-primary {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-submit:hover, .btn-post:hover, .btn-primary:hover { transform: translateY(-1px); }

/* 区块标题装饰线 */
.section-header h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #C8A45C, rgba(200,164,92,0));
    margin-top: 8px;
}

/* 全站滚动条美化（WebKit） */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(27, 42, 74, .25);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(200, 164, 92, .55); background-clip: content-box; border: 2px solid transparent; }

/* 表格斑马纹（后台/工作台通用） */
table.data-table tbody tr:nth-child(even), .table tbody tr:nth-child(even) {
    background: rgba(27, 42, 74, .025);
}
table.data-table tbody tr:hover, .table tbody tr:hover { background: rgba(200, 164, 92, .06); }

/* 图片加载失败兜底（配合 enhance.js） */
img.img-fallback { opacity: .35; }

/* 移动端细节 */
@media (max-width: 768px) {
    .house-card:hover { transform: none; box-shadow: 0 2px 10px rgba(20,42,74,.08); }
    ::-webkit-scrollbar { width: 4px; }
}
