/* ============================================================
 * 化州旅游景点大全 · 主题包
 * ============================================================ */

/* 隐藏 XIU 右侧栏（只影响景点插件页面） */
body.mm365-attr-body .sidebar,
body.mm365-attr-body .content-wrap .sidebar,
body.mm365-attr-body .content-wrap > .sidebar {
    display: none !important;
}
body.mm365-attr-body .content-wrap > .content,
body.mm365-attr-body .content-wrap .content {
    margin-right: 0 !important;
}

/* 主题色变量 */
body.mm365-attr-body.theme-classic-red { --mm365-attr-main:#e4393c; --mm365-attr-main-hover:#c62828; --mm365-attr-main-light:#fff2f2; }
body.mm365-attr-body.theme-fresh-green { --mm365-attr-main:#22a55a; --mm365-attr-main-hover:#1a7d43; --mm365-attr-main-light:#eaf7ef; }
body.mm365-attr-body.theme-business-blue { --mm365-attr-main:#2271b1; --mm365-attr-main-hover:#1a5a8f; --mm365-attr-main-light:#eaf3fa; }
body.mm365-attr-body.theme-dark-gold { --mm365-attr-main:#d4a95a; --mm365-attr-main-hover:#b8923f; --mm365-attr-main-light:#2a2520; }
body.mm365-attr-body.theme-minimal-white { --mm365-attr-main:#1d2327; --mm365-attr-main-hover:#000000; --mm365-attr-main-light:#f0f0f1; }
body.mm365-attr-body.theme-custom {
    --mm365-attr-main: var(--mm365-attr-custom-main,#e4393c);
    --mm365-attr-main-hover: var(--mm365-attr-custom-main-hover,#c62828);
    --mm365-attr-main-light: var(--mm365-attr-custom-main-light,#fff2f2);
}

/* ============================================================
 * 返回按钮（卡片式，左侧主题色竖条）
 * ============================================================ */
.mm365-attr-back-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.mm365-attr-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 14px;
    background: #fff;
    color: #1d2327 !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1px solid var(--mm365-attr-line, #ebedf0);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: all 240ms cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.mm365-attr-back-home::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--mm365-attr-main, #e4393c);
    transform: scaleY(0);
    transition: transform 240ms cubic-bezier(.4,0,.2,1);
}
.mm365-attr-back-home:hover {
    transform: translateY(-2px);
    border-color: var(--mm365-attr-main, #e4393c);
    color: var(--mm365-attr-main, #e4393c) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.mm365-attr-back-home:hover::before {
    transform: scaleY(1);
}
.mm365-attr-back-home span[aria-hidden] {
    font-size: 15px;
    line-height: 1;
    transition: transform 240ms;
}
.mm365-attr-back-home:hover span[aria-hidden] {
    transform: translateX(-3px);
}

/* 第二个按钮（返回景点首页）用主题色描边 */
.mm365-attr-back-nav .mm365-attr-back-home:nth-child(2) {
    background: linear-gradient(135deg, var(--mm365-attr-main-light, #fff2f2) 0%, #fff 100%);
    border-color: var(--mm365-attr-main-light, #fff2f2);
    color: var(--mm365-attr-main, #e4393c) !important;
}
.mm365-attr-back-nav .mm365-attr-back-home:nth-child(2):hover {
    background: var(--mm365-attr-main, #e4393c);
    color: #fff !important;
    border-color: var(--mm365-attr-main, #e4393c);
}

@media (max-width: 600px) {
    .mm365-attr-back-home {
        flex: 1 1 0;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ============================================================
 * 卡片网格 2 列
 * ============================================================ */
body.mm365-attr-body .mm365-attr-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 600px) {
    body.mm365-attr-body .mm365-attr-cards { grid-template-columns: 1fr; }
}

/* ============================================================
 * 首页镇入口
 * ============================================================ */
.mm365-attr-home-towns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.mm365-attr-home-town {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    color: #1d2327 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 240ms;
}
.mm365-attr-home-town:hover {
    transform: translateY(-2px);
    color: var(--mm365-attr-main, #e4393c) !important;
    border-color: var(--mm365-attr-main, #e4393c);
}
.mm365-attr-home-town-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--mm365-attr-main-light, #fff2f2);
    color: var(--mm365-attr-main, #e4393c);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
}
@media (max-width: 1024px) { .mm365-attr-home-towns { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .mm365-attr-home-towns { grid-template-columns: repeat(2, 1fr); } }