/* 移动端导航广告站 - 简化版 */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.m-site {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background: #ececec;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; padding: 0; cursor: pointer; }

.m-shell {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
}

/* 顶栏 */
.m-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 10px;
    background: #503f32;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.m-topbar__left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 88px;
    font-size: 24px;
    font-weight: 700;
}

.m-topbar__center {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    padding-bottom: 4px;
}

.m-topbar__center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 2px;
    margin-left: -14px;
    background: #fff;
}

.m-topbar__close {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 72px;
    color: #fff;
    font-size: 12px;
}

.m-topbar__close-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* 顶部广告区 */
.m-banner-wrap {
    background: #f3f3f3;
    padding: 0;
}

.m-banner-wrap.is-hidden { display: none; }

/* 顶图广告 - 对齐目标站 .gga */
.gga {
    background: #fff;
    padding: 4px 4px 0;
}

.gga .item {
    line-height: 0;
    font-size: 0;
    border-bottom: 2px solid #e60012;
}

.gga .item:last-child {
    border-bottom: none;
    margin-bottom: 4px;
}

.gga .item a {
    display: block;
    text-decoration: none;
}

.gga .item img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    vertical-align: top;
}

.m-top-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.m-top-text {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 6px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    overflow: hidden;
}

.m-top-text:active {
    background: #fafafa;
}

.m-top-text__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    background: #ccc;
    transform: rotate(45deg);
}

.m-top-text__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-top-text__tag {
    flex-shrink: 0;
    margin-left: 4px;
    padding: 0 3px;
    font-size: 10px;
    font-weight: 400;
    color: #999;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    line-height: 16px;
}

/* 分组 */
.m-group { margin-bottom: 8px; }

.m-group__bar {
    padding: 10px 12px;
    background: #73655b;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.02em;
}

/* 双列链接卡片（带间距圆角） */
.m-link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: #f3f3f3;
}

.m-link-cell {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 6px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.m-link-cell:active { background: #fafafa; }

.m-link-cell__text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-link-cell__arrow {
    flex-shrink: 0;
    margin-left: 4px;
    font-size: 14px;
    color: #bbb;
    line-height: 1;
}

.m-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.m-footer {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.m-footer p { margin: 0; }

/* 桌面拦截 */
body.m-desktop-block {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececec;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.m-desktop-block__box {
    max-width: 360px;
    padding: 40px 28px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.m-desktop-block__icon { font-size: 48px; margin-bottom: 16px; }
.m-desktop-block__box h1 { margin: 0 0 12px; font-size: 20px; color: #333; }
.m-desktop-block__box p { margin: 0 0 8px; font-size: 14px; color: #666; line-height: 1.6; }
.m-desktop-block__url { margin-top: 16px !important; font-weight: 700; color: #d32f2f !important; word-break: break-all; }
