.shuju-page {
    background: #fff;
    border-bottom: 1px solid #ccc;
    padding: 2.75em 1.75em;
}

.shuju-header {
    margin-bottom: 1.5rem;
}

.shuju-header h2 {
    margin: 0;
    color: #252122;
    font-size: 2.2rem;
}

.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* Keep the original three-column zone order. */
.zone-item:nth-child(1) { order: 7; }
.zone-item:nth-child(2) { order: 5; }
.zone-item:nth-child(3) { order: 4; }
.zone-item:nth-child(4) { order: 3; }
.zone-item:nth-child(5) { order: 9; }
.zone-item:nth-child(6) { order: 8; }
.zone-item:nth-child(7) { order: 6; }
.zone-item:nth-child(8) { order: 1; }
.zone-item:nth-child(9) { order: 10; }
.zone-item:nth-child(10) { order: 2; }
.zone-item:nth-child(11) { order: 11; }
.zone-item:nth-child(12) { order: 12; }

.zone-item {
    display: flex;
    margin-bottom: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: #fafafa;
    min-width: 0;
}

.zone-item h3 {
    margin: 0;
    color: #2b2b2b;
    font-size: 1.15rem;
    white-space: nowrap;
}

.zone-actions {
    display: flex;
    flex: 1 1 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
}

.zone-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 2.1rem;
    padding: 0 0.45rem;
    white-space: nowrap;
    border-radius: 5px;
    background: #d0143d;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.zone-actions a:hover {
    background: #b80f34;
    color: #fff;
}

.zone-actions .zone-data {
    background: #29282b;
}

.zone-actions .zone-data:hover {
    background: #111;
}

@media screen and (max-width: 980px) {
    .zone-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 736px) {
    .shuju-page {
        padding: 1.5rem 1rem;
    }

    .shuju-header h2 {
        font-size: 1.6rem;
    }

    .zone-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .zone-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .zone-actions a {
        flex: 0 0 auto;
        min-width: 3.4rem;
    }
}
