/* ==========================================================================
   seobole.com 首页样式（重设计版）
   主色：#1296db  文字：#1a1a1a / #666  背景：#f7f8fa
   ========================================================================== */

/* ---------- 首屏 hero ---------- */
.home-hero {
    margin-bottom: 14px;
}
.hero-left {
    width: 778px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.hero-left .layui-carousel {
    border-radius: 8px;
}
.hero-right {
    width: 302px;
    margin-left: 20px;
}

/* ---------- 数据统计卡 ---------- */
.stat-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.stat-item {
    flex: 1;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 16px 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1296db;
    line-height: 1.3;
}
.stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

/* ---------- 提交网站按钮 ---------- */
.hero-submit {
    display: block;
    background: linear-gradient(135deg, #1296db, #0d7fbb);
    border-radius: 8px;
    padding: 16px 20px;
    color: #fff;
    position: relative;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(18, 150, 219, .25);
}
.hero-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 150, 219, .35);
}
.hero-submit .hs-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}
.hero-submit .hs-text {
    font-size: 16px;
    font-weight: 600;
    vertical-align: middle;
}
.hero-submit .hs-desc {
    display: block;
    font-size: 12px;
    opacity: .8;
    margin-top: 6px;
    padding-left: 36px;
}

/* ---------- 两栏宽度 ---------- */
.main-left {
    width: 778px;
}
.main-right {
    width: 302px;
    margin-left: 20px;
}

/* ---------- 板块通用 ---------- */
.hb {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 18px 22px 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.hb-title {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding-left: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.hb-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: #1296db;
}
.hb-more {
    float: right;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    transition: color .2s;
}
.hb-more:hover {
    color: #1296db;
}

/* ---------- SEO 工具卡 ---------- */
.tool-grid {
    display: flex;
    gap: 12px;
}
.tool-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #ececec;
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    min-width: 0;
}
.tool-card:hover {
    border-color: #1296db;
    box-shadow: 0 3px 10px rgba(18, 150, 219, .1);
    transform: translateY(-2px);
}
.tool-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1296db;
    background: #f2f9fe;
    border-radius: 8px;
    margin-right: 12px;
}
.tool-info {
    min-width: 0;
}
.tool-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
}
.tool-desc {
    display: block;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 网址列表（重新设计） ---------- */
.url-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}
.url-list li {
    width: 20%;
    padding: 5px;
    box-sizing: border-box;
    float: none;
}
.urlbox a {
    display: block;
    width: 100%;
    height: 34px;
    line-height: 32px;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: left;
    font-size: 13px;
    color: #555;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background .2s, color .2s, border-color .2s;
}
.urlbox a:hover {
    background: #f2f9fe;
    color: #1296db;
    border-color: #b9dcf3;
}

/* ---------- 右侧栏板块 ---------- */
.hside {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.hside-title {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 14px 16px 12px 28px;
    border-bottom: 1px solid #f0f0f0;
}
.hside-title::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #1296db;
}
.hside-list {
    padding: 8px 6px 12px;
}
.hside-list li {
    margin: 1px 0;
}
.hside-list li a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    border-radius: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: background .2s, color .2s;
}
.hside-list li a:hover {
    background: #f2f9fe;
    color: #1296db;
}

/* ---------- 热搜标签 ---------- */
.hside .hot-words {
    padding: 12px 12px 16px;
}
.hot-words a {
    display: inline-block;
    padding: 4px 11px;
    margin: 0 6px 8px 0;
    font-size: 13px;
    color: #666;
    background: #f7f8fa;
    border-radius: 14px;
    transition: background .2s, color .2s;
}
.hot-words a:hover {
    background: #f2f9fe;
    color: #1296db;
}

/* ---------- 在线客服 ---------- */
.hside-service {
    padding: 16px 12px;
    text-align: center;
}

/* ---------- 友情链接 ---------- */
.flink {
    padding: 16px 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 10px;
}
.flink h3 {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding-left: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
    border-bottom: none;
}
.flink h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #1296db;
}
.flink .links {
    display: block;
    padding: 0;
}
.flink .links a {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 8px 6px 0;
    font-size: 13px;
    color: #777;
    background: #f7f8fa;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.flink .links a:hover {
    background: #f2f9fe;
    color: #1296db;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1200px) {
    .container { width: 100%; padding: 0 10px; box-sizing: border-box; }
    .hero-left  { width: calc(100% - 320px); }
    .hero-right { width: 300px; margin-left: 20px; }
    .main-left  { width: calc(100% - 320px); }
    .main-right { width: 300px; margin-left: 20px; }
}
@media screen and (max-width: 760px) {
    .hero-left,
    .hero-right,
    .main-left,
    .main-right {
        width: 100%;
        float: none;
        margin-left: 0;
    }
    .hero-right { margin-top: 12px; }
    .main-right { margin-top: 14px; }
    .tool-grid { flex-direction: column; }
    .url-list li { width: 50%; }
    .stat-item { padding: 12px 4px; }
    .stat-num { font-size: 17px; }
    .hb { padding: 14px 16px 16px; }
}

/* ==========================================================================
   修复 v2：hero 区顶部对齐 + 侧栏列表省略号
   ========================================================================== */

/* ---------- 1. hero 区两栏顶部对齐 ---------- */
/* 用 flex 替代 float，确保左右栏顶部严格对齐 */
.home-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.home-hero .hero-left {
    flex: 1 1 auto;
    float: none;
    min-width: 0;
}
.home-hero .hero-right {
    flex: 0 0 302px;
    width: 302px;
    float: none;
    margin-left: 0;
}
/* 轮播容器撑满、去掉底部空隙 */
.hero-left .layui-carousel,
.hero-left .layui-carousel > *[carousel-item] {
    display: block;
}
.hero-left .layui-carousel > *[carousel-item] > * {
    height: 320px;
    overflow: hidden;
}
.hero-left .layui-carousel img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* ---------- 2. 主内容区两栏也对齐 ---------- */
.mainbody > .container {
    /* 保持原有布局，仅保证 main-left 顶部与右栏一致 */
}
.main-left {
    float: left;
}
.main-right {
    float: right;
    margin-left: 0;
}

/* ---------- 3. 侧栏列表强制单行省略号 ---------- */
.hside-list li a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    line-height: 38px !important;
    padding: 0 12px !important;
    font-size: 14px;
    color: #444;
    border-radius: 5px;
    transition: background .2s, color .2s;
}
.hside-list li {
    overflow: hidden;
}
.hside-list {
    padding: 6px 6px 10px;
}

/* ---------- 4. 只保留移动端单列 ---------- */
@media screen and (max-width: 1200px) {
    .home-hero .hero-left {
        flex: 1 1 auto;
        width: auto;
    }
    .home-hero .hero-right {
        flex: 0 0 300px;
        width: 300px;
    }
}
@media screen and (max-width: 900px) {
    .home-hero {
        flex-direction: column;
        gap: 12px;
    }
    .home-hero .hero-left,
    .home-hero .hero-right {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ==========================================================================
   修复 v3：在线客服移入 hero-right
   ========================================================================== */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-right .stat-grid {
    margin-bottom: 0;
}
.hero-service {
    flex: 1 1 auto;               /* 撑满剩余高度 */
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.hero-service-title {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 13px 16px 11px 28px;
    border-bottom: 1px solid #f0f0f0;
}
.hero-service-title::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 17px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #1296db;
}
.hero-service-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.hero-service-body img {
    display: block;
    max-width: 100%;
}
