/* ===================================================================
   xushulian.top 首页美化样式 - beautify.css
   不改变布局尺寸，仅添加现代化视觉效果
   =================================================================== */

/* === 全局优化 === */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    background: #f5f5f7 !important;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 现代滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* === 顶部导航栏 === */
.bfbtop2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
    transition: box-shadow 0.3s ease;
}

/* 顶部logo区域 */
.bfbtop2 img {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.bfbtop2 img:hover {
    transform: scale(1.05);
}

/* 搜索栏 */
.topser {
    border: 2px solid rgba(255,255,255,0.15) !important;
    background: rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(10px);
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}
.topser:focus-within {
    border-color: #fccc36 !important;
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 0 0 3px rgba(252,204,54,0.2) !important;
}
.topser input {
    background: transparent !important;
    color: #fff !important;
}
.topser input::placeholder {
    color: rgba(255,255,255,0.5);
}
.topser input:focus {
    outline: none;
}

/* 登录按钮 */
.toplogin .a2 {
    border: 2px solid #fccc36 !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    font-weight: 600;
}
.toplogin .a2:hover {
    background: #fccc36 !important;
    color: #1a1a2e !important;
    box-shadow: 0 4px 15px rgba(252,204,54,0.4) !important;
    transform: translateY(-1px);
}

/* === 导航栏 === */
.bfbtop3 {
    background: linear-gradient(90deg, #0f3460 0%, #1a1a2e 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}
.bfbtop3 a {
    transition: all 0.3s ease !important;
    position: relative;
}
.bfbtop3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fccc36;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.bfbtop3 a:hover {
    color: #fccc36 !important;
}
.bfbtop3 a:hover::after {
    width: 70%;
}

/* === 首页主体 === */
.bfbindex {
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%) !important;
}

/* === 侧边栏菜单 === */
.indexksmenu {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.3s ease;
}
.indexksmenu:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
}
.indexksmenu a, .indexksmenu li {
    transition: all 0.25s ease !important;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.indexksmenu a:hover, .indexksmenu li:hover {
    background: linear-gradient(90deg, #f0f4ff 0%, #e8eeff 100%) !important;
    padding-left: 20px !important;
    color: #0f3460 !important;
}

/* === 横幅图 === */
.zhutu {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
}
.zhutu:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}
.zhutu img {
    transition: transform 0.5s ease;
}
.zhutu:hover img {
    transform: scale(1.03);
}

/* === 商品卡片 === */
.prolist .pro {
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    background: #fff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.prolist .pro:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
    border-color: rgba(252,204,54,0.3) !important;
}
.prolist .pro img {
    transition: transform 0.4s ease;
}
.prolist .pro:hover img {
    transform: scale(1.08);
}

/* 商品价格 */
.prolist .pro .price, .prolist .pro span[style*="color"] {
    font-weight: 700 !important;
}

/* === 滚动公告 === */
.indexgg {
    border-radius: 8px !important;
    background: linear-gradient(90deg, #fff8e1 0%, #fffde7 100%) !important;
    border: 1px solid rgba(252,204,54,0.2) !important;
    padding: 8px 15px !important;
}
.indexgg marquee {
    color: #b8860b;
    font-weight: 500;
}

/* === 底部 === */
.bfbbottom, .bfbfooter {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%) !important;
    color: #999 !important;
}
.bfbbottom a, .bfbfooter a {
    transition: color 0.3s ease !important;
}
.bfbbottom a:hover, .bfbfooter a:hover {
    color: #fccc36 !important;
}

/* === 通用链接 === */
a {
    transition: color 0.2s ease;
}

/* === 按钮通用样式 === */
input[type="submit"], input[type="button"], button {
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* === 表格美化 === */
table {
    border-collapse: collapse;
}

/* === 图片通用 === */
img {
    transition: opacity 0.3s ease;
}

/* === 内容区域 === */
.yjcode {
    position: relative;
}

/* === 分类区块标题 === */
.bfbindex .title, .indextitle {
    font-weight: 700 !important;
    position: relative;
    padding-left: 12px !important;
}
.bfbindex .title::before, .indextitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #fccc36 0%, #f59e0b 100%);
    border-radius: 2px;
}

/* === 搜索按钮 === */
.topser input[type="submit"], .topser button, .topser .sou {
    background: linear-gradient(135deg, #fccc36 0%, #f59e0b 100%) !important;
    border: none !important;
    border-radius: 0 25px 25px 0 !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}
.topser input[type="submit"]:hover, .topser button:hover, .topser .sou:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #fccc36 100%) !important;
    box-shadow: 0 4px 12px rgba(252,204,54,0.4) !important;
}

/* === 进入动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prolist .pro {
    animation: fadeInUp 0.5s ease forwards;
}
.prolist .pro:nth-child(1) { animation-delay: 0.05s; }
.prolist .pro:nth-child(2) { animation-delay: 0.1s; }
.prolist .pro:nth-child(3) { animation-delay: 0.15s; }
.prolist .pro:nth-child(4) { animation-delay: 0.2s; }
.prolist .pro:nth-child(5) { animation-delay: 0.25s; }
.prolist .pro:nth-child(6) { animation-delay: 0.3s; }
.prolist .pro:nth-child(7) { animation-delay: 0.35s; }
.prolist .pro:nth-child(8) { animation-delay: 0.4s; }

/* === 移动端适配 === */
@media screen and (max-width: 768px) {
    .bannerwrap { flex-wrap: wrap; }

    .bfbtop2 {
        height: auto !important;
        padding: 10px 0 !important;
    }
    .yjcode {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    .indexksmenu, .zhutu {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .prolist .pro {
        width: 48% !important;
        margin: 1% !important;
    }
}

/* === 加载优化 === */
.prolist .pro,
.indexksmenu,
.zhutu {
    will-change: transform;
}

/* === 横幅一排显示 === */
.bannerwrap { display: flex; flex-wrap: nowrap; align-items: flex-start; }
