*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.gw-page {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #eef2f7;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.gw-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 24px;
}

/* 顶栏 + 搜索 */
.gw-header {
    background: linear-gradient(180deg, #2b7fd9 0%, #1e6fc4 100%);
    padding: 14px 12px 16px;
    color: #fff;
    text-align: center;
}

.gw-header__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.gw-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gw-search input {
    flex: 1;
    border: 0;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.gw-search button {
    border: 0;
    padding: 0 16px;
    background: #f0f0f0;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.gw-search button:hover {
    background: #e4e4e4;
}

/* 线路入口 */
.gw-routes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 12px;
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
}

.gw-route-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid #c5daf5;
    background: linear-gradient(180deg, #fff 0%, #f4f9ff 100%);
    color: #1565c0;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(30, 111, 196, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gw-route-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 111, 196, 0.18);
    color: #0d47a1;
}

.gw-route-btn:active {
    transform: translateY(0);
}

/* 门户区块 */
.gw-panel {
    background: #fff;
    margin-top: 8px;
    padding: 12px;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
}

.gw-panel__title {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    padding-left: 4px;
    border-left: 3px solid #2b7fd9;
    line-height: 1.2;
}

/* 小图标链接 */
.gw-links-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
}

.gw-links-sm a {
    width: 16.666%;
    min-width: 56px;
    padding: 6px 2px;
    text-align: center;
    text-decoration: none;
    color: #444;
    font-size: 12px;
}

.gw-links-sm a:hover {
    color: #1565c0;
}

.gw-links-sm .gw-ico {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 4px;
    border-radius: 6px;
    background: #f5f5f5;
    font-size: 14px;
    line-height: 32px;
    font-weight: 700;
    color: #fff;
}

.gw-ico--bd { background: #2932e1; }
.gw-ico--xl { background: #e6162d; }
.gw-ico--tb { background: #ff5000; }
.gw-ico--tm { background: #ff0036; }
.gw-ico--sh { background: #ffcb05; color: #333; }
.gw-ico--wb { background: #ff8200; }
.gw-ico--tx { background: #12b7f5; }
.gw-ico--fh { background: #d7000f; }
.gw-ico--wy { background: #c20c0c; }
.gw-ico--ct { background: #2577e3; }
.gw-ico--58 { background: #ff552e; }
.gw-ico--gj { background: #00a0e9; }
.gw-ico--bx { background: #00a0e9; }
.gw-ico--yk { background: #00a1d6; }
.gw-ico--aq { background: #00be06; }
.gw-ico--qc { background: #c81623; }
.gw-ico--ali { background: #ff6a00; }
.gw-ico--ys { background: #0080ff; }
.gw-ico--df { background: #e60012; }
.gw-ico--xh { background: #005bab; }

/* 大图标电商 */
.gw-links-lg {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 6px;
}

.gw-links-lg a {
    text-align: center;
    text-decoration: none;
    color: #444;
    font-size: 12px;
}

.gw-links-lg a:hover {
    color: #1565c0;
}

.gw-links-lg .gw-ico {
    width: 44px;
    height: 44px;
    margin: 0 auto 4px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 44px;
}

.gw-ico--jd { background: #e1251b; }
.gw-ico--sn { background: #ffaa00; color: #333; }
.gw-ico--gm { background: #e1140a; }
.gw-ico--mt { background: #ffc300; color: #333; }
.gw-ico--elm { background: #0097ff; }
.gw-ico--jm { background: #ed008c; }
.gw-ico--dp { background: #ff6633; }
.gw-ico--az { background: #ff9900; }
.gw-ico--qn { background: #00afc7; }
.gw-ico--wp { background: #e4007f; }
.gw-ico--yhd { background: #e60012; }
.gw-ico--dd { background: #ff2832; }
.gw-ico--yt { background: #e60012; }

/* 分类文字链接 */
.gw-links-cat {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
}

.gw-links-cat a {
    width: 20%;
    min-width: 64px;
    padding: 4px 2px;
    text-align: center;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}

.gw-links-cat a:hover {
    color: #1565c0;
}

.gw-footer {
    text-align: center;
    padding: 16px 12px 24px;
    color: #999;
    font-size: 12px;
}

.gw-back-top {
    position: fixed;
    right: 10px;
    bottom: 20px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(43, 127, 217, 0.92);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: none;
}

.gw-back-top.is-show {
    display: block;
}

@media (max-width: 400px) {
    .gw-links-sm a { width: 20%; }
    .gw-links-lg { grid-template-columns: repeat(4, 1fr); }
    .gw-links-cat a { width: 25%; }
    .gw-route-btn { font-size: 15px; min-height: 48px; }
}
