:root {
    --portal-bg: #ececec;
    --portal-paper: #fff;
    --portal-line: #dedede;
    --portal-soft-line: #ececec;
    --portal-text: #222;
    --portal-muted: #747474;
    --portal-brand: #ba9835;
    --portal-brand-dark: #856d1f;
    --portal-brand-soft: #fdf8eb;
    --portal-amber: #ffd048;
    --portal-green: #2d8b6f;
}

html {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body.portal-home {
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden;
    background: var(--portal-bg);
    color: var(--portal-text);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

.portal-home a {
    color: inherit;
    text-decoration: none;
}

.portal-home img {
    display: block;
    max-width: 100%;
}

.portal-wrap {
    width: 1200px;
    max-width: calc(100% - 24px);
    margin: 0 auto;
}

.portal-topbar {
    background: #f7f7f7;
    border-bottom: 1px solid #dcdcdc;
    color: #666;
    font-size: 12px;
}

.portal-topbar .portal-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 34px;
}

.portal-header {
    padding: 24px 0 18px;
    background: #fff;
}

.portal-header-main {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

.portal-logo {
    width: 250px;
    flex: 0 0 250px;
}

.portal-logo strong {
    display: block;
    color: var(--portal-brand-dark);
    font-size: 30px;
    line-height: 1.1;
}

.portal-logo span {
    display: block;
    margin-top: 7px;
    color: #858585;
    font-size: 12px;
    white-space: nowrap;
}

.portal-searchbox {
    flex: 0 1 640px;
    max-width: 640px;
    min-width: 0;
}

.portal-search-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.portal-search-tabs span {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #666;
    font-size: 12px;
}

.portal-search-tabs .is-active {
    border-color: var(--portal-brand);
    background: var(--portal-brand);
    color: #fff;
}

.portal-search-form {
    display: flex;
    height: 42px;
}

.portal-search-form input {
    min-width: 0;
    flex: 1;
    border: 2px solid var(--portal-brand);
    border-right: 0;
    background: #fff;
    padding: 0 14px;
    color: #333;
    font-size: 14px;
    outline: none;
}

.portal-search-form button {
    width: 120px;
    border: 0;
    background: var(--portal-brand);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.portal-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: #fff;
}

.portal-nav strong {
    flex: 0 0 auto;
    color: #444;
    font-size: 13px;
}

.portal-nav a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #eee;
    background: #fafafa;
    color: #555;
    font-size: 13px;
}

.portal-nav a.current,
.portal-nav a:hover {
    border-color: #eee3b8;
    background: #fdfbf0;
    color: var(--portal-brand-dark);
}

.portal-main {
    padding-bottom: 26px;
}

.portal-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 250px;
    gap: 14px;
    padding: 14px;
    background: #ede7d5;
}

.portal-panel,
.portal-section,
.portal-foot {
    border: 1px solid var(--portal-line);
    background: var(--portal-paper);
}

.portal-submit {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 18px 16px 14px;
}

.portal-submit h2 {
    margin: 0;
    color: #303030;
    font-size: 24px;
    line-height: 1.1;
}

.portal-submit p {
    margin: 14px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.9;
}

.portal-submit span {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    color: #999;
    font-size: 12px;
}

.portal-submit a,
.portal-member a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-top: 14px;
    background: var(--portal-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.portal-banner {
    min-height: 220px;
    display: flex;
    align-items: center;
    padding: 26px 30px;
    background:
        radial-gradient(circle at 88% 16%, rgba(255, 208, 72, .32), transparent 28%),
        linear-gradient(135deg, #dbb049, #856d1f);
    color: #fff;
}

.portal-banner h1 {
    margin: 0 0 12px;
    font-size: 50px;
    line-height: 1;
}

.portal-banner h2 {
    margin: 0;
    max-width: 760px;
    font-size: 25px;
    line-height: 1.38;
}

.portal-banner p {
    margin: 14px 0 0;
    font-size: 15px;
}

.portal-banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
}

.portal-banner-tags span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.portal-banner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 38px;
    margin-top: 20px;
    border-radius: 999px;
    background: var(--portal-amber);
    color: var(--portal-brand-dark);
    font-size: 15px;
    font-weight: 700;
}

.portal-member {
    padding: 16px;
}

.portal-member p {
    margin: 0;
    color: #777;
    font-size: 12px;
}

.portal-member a {
    border: 1px solid #e4e4e4;
    background: #fff;
    color: #666;
    font-weight: 400;
}

.portal-member a.primary {
    border-color: var(--portal-brand);
    background: var(--portal-brand);
    color: #fff;
    font-weight: 700;
}

.portal-login-mock {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.portal-login-mock input {
    width: 100%;
    height: 38px;
    margin-bottom: 10px;
    border: 1px solid #e4e4e4;
    background: #fafafa;
    padding: 0 10px;
    outline: none;
}

.portal-login-mock span {
    color: #888;
    font-size: 12px;
    line-height: 1.8;
}

.portal-section {
    margin-top: 14px;
}

.portal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 18px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.portal-section-head strong {
    font-size: 18px;
}

.portal-section-head a {
    color: #999;
    font-size: 12px;
}

.portal-floor-layout {
    margin-top: 14px;
}

.portal-floor {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    min-width: 0;
    margin-bottom: 14px;
    border: 1px solid var(--portal-line);
    background: #fff;
}

.portal-floor:last-child {
    margin-bottom: 0;
}

.portal-floor-intro {
    padding: 18px 16px;
    background: linear-gradient(180deg, #fefbf3, #fdf7ea);
    border-right: 1px solid #f4eddd;
}

.portal-floor-intro span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 9px;
    background: var(--portal-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.portal-floor-intro i {
    display: block;
    margin-top: 16px;
    color: var(--portal-green);
    font-size: 24px;
}

.portal-floor-intro h2 {
    margin: 9px 0 0;
    color: var(--portal-brand-dark);
    font-size: 22px;
    line-height: 1.25;
}

.portal-floor-intro p {
    margin: 8px 0 0;
    color: #7e7a6c;
    font-size: 12px;
    line-height: 1.8;
}

.portal-floor-intro div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.portal-floor-intro a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 9px;
    border: 1px solid #f0e5c9;
    background: #fff;
    color: var(--portal-brand-dark);
    font-size: 12px;
}

.portal-floor-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
}

.portal-floor-columns section {
    min-width: 0;
    padding: 14px 16px 12px;
}

.portal-floor-columns section + section {
    border-left: 1px solid #eee;
}

.portal-floor-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.portal-floor-column-head strong {
    color: #222;
    font-size: 16px;
}

.portal-floor-column-head a {
    color: #999;
    font-size: 12px;
}

.portal-floor-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px dashed var(--portal-soft-line);
    color: #333;
}

.portal-floor-list a:last-child {
    border-bottom: 0;
}

.portal-floor-list strong {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-floor-list span {
    flex: 0 0 auto;
    color: #999;
    font-size: 12px;
}

.portal-shop-strip {
    margin-top: 14px;
}

.portal-shop-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 18px;
    padding: 10px 16px 16px;
}

.portal-shop-list a {
    display: block;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px dashed var(--portal-soft-line);
}

.portal-shop-list a:last-child {
    border-bottom: 0;
}

.portal-shop-list strong {
    display: block;
    overflow: hidden;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-shop-list span {
    display: block;
    margin-top: 3px;
    color: #999;
    font-size: 12px;
}

.portal-site-section {
    margin-top: 14px;
}

.portal-city-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.portal-city-grid article {
    min-height: 104px;
    border: 1px solid #efe8dd;
    border-radius: 8px;
    background: #fefaf4;
    padding: 13px;
}

.portal-city-grid strong {
    display: block;
    color: #6c3f16;
    font-size: 15px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-city-grid div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
}

.portal-city-grid a {
    color: #524935;
    font-size: 12px;
    white-space: nowrap;
}

.portal-foot {
    margin-top: 14px;
    padding: 14px 16px;
}

.portal-friend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.portal-friend a {
    color: #666;
    font-size: 12px;
}

.portal-foot p {
    margin: 10px 0 0;
    color: #999;
    font-size: 12px;
}

.portal-floor-list a:hover strong,
.portal-shop-list a:hover strong,
.portal-city-grid a:hover,
.portal-friend a:hover {
    color: var(--portal-brand-dark);
}

@media (max-width: 1180px) {
    .portal-hero {
        grid-template-columns: 1fr;
    }

    .portal-shop-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-banner h1 {
        font-size: 42px;
    }
}

@media (max-width: 760px) {
    .portal-topbar .portal-wrap,
    .portal-header-main {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-logo {
        width: auto;
        flex-basis: auto;
    }

    .portal-logo span {
        white-space: normal;
    }

    .portal-searchbox {
        width: 100%;
        max-width: none;
    }

    .portal-nav {
        gap: 8px;
        padding: 8px 10px;
    }

    .portal-nav a {
        padding: 0 10px;
    }

    .portal-search-form button {
        width: 86px;
        flex: 0 0 86px;
        font-size: 14px;
    }

    .portal-city-grid {
        grid-template-columns: 1fr;
    }

    .portal-shop-list {
        grid-template-columns: 1fr;
    }

    .portal-floor {
        grid-template-columns: 1fr;
    }

    .portal-floor-intro {
        border-right: 0;
        border-bottom: 1px solid #f4eddd;
    }

    .portal-floor-columns {
        grid-template-columns: 1fr;
    }

    .portal-floor-columns section + section {
        border-left: 0;
        border-top: 1px solid #eee;
    }

    .portal-banner {
        padding: 20px;
    }

    .portal-banner h1 {
        font-size: 34px;
    }

    .portal-banner h2 {
        font-size: 20px;
    }

}

@media (max-width: 900px) {
    .portal-wrap {
        width: auto;
        max-width: none;
        margin-right: 12px;
        margin-left: 12px;
    }

    .portal-search-tabs {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .portal-search-tabs span {
        flex: 0 0 auto;
    }

    .portal-section-head {
        height: auto;
        min-height: 46px;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px;
    }

    .portal-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-floor-list a {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .portal-topbar .portal-wrap {
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }

    .portal-logo strong {
        font-size: 26px;
    }

    .portal-search-form button {
        width: 92px;
        flex: 0 0 92px;
        font-size: 14px;
    }

    .portal-nav strong {
        width: 100%;
    }

    .portal-nav a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        min-width: 0;
    }

    .portal-main {
        padding-bottom: 18px;
    }

    .portal-hero {
        padding: 10px;
    }

    .portal-banner {
        min-height: auto;
        padding: 18px;
    }

    .portal-banner h1 {
        font-size: 28px;
    }

    .portal-banner h2 {
        font-size: 18px;
    }

    .portal-banner p,
    .portal-banner-tags {
        font-size: 12px;
    }

    .portal-submit,
    .portal-member {
        min-height: auto;
    }

    .portal-floor-intro,
    .portal-floor-columns section,
    .portal-shop-list,
    .portal-city-grid {
        padding: 12px;
    }

    .portal-city-grid {
        grid-template-columns: 1fr;
    }

    .portal-foot {
        padding: 12px;
    }
}

@media (max-width: 420px) {
    .portal-wrap {
        margin-right: 10px;
        margin-left: 10px;
    }

    .portal-search-form button {
        width: 78px;
        flex-basis: 78px;
        padding: 0 8px;
    }

    .portal-nav a {
        flex-basis: 100%;
    }

    .portal-floor-list a {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .portal-floor-list span {
        white-space: normal;
    }
}
