/* Home and city styles from fanbo3/my-app. */
.C-InfoCard,
.C-InfoAd {
    height: 155px !important;
    display: flex;
}

.pagination {
    display: block;
}

.pagination li {
    display: inline-block;
    margin-left: 2px;
    border: 1px solid #ededed;
    padding: 0 12px;
    color: #3e3e3e;
    line-height: 30px;
    font-size: 16px;
    text-decoration: none;
}

.pagination .active {
    background-color: #2b2b37;
    color: #fff;
    border: 1px solid #2b2b37;
}

.pagination .active a {
    color: #fff;
}

.C-TopAdBanner {
    margin: 6px 0 8px;
    position: relative;
    z-index: 1;
}

.C-TopAdBanner-link {
    display: block;
    position: relative;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    text-decoration: none;
}

.C-TopAdBanner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.C-TopAdBanner-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 13, 28, 0.62), rgba(8, 13, 28, 0.28));
}

.C-TopAdBanner-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    box-sizing: border-box;
    gap: 10px;
}

.C-TopAdBanner-text {
    min-width: 0;
    flex: 1;
}

.C-TopAdBanner-title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.C-TopAdBanner-desc {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.C-TopAdBanner-btn {
    flex: 0 0 auto;
    height: 24px;
    line-height: 24px;
    padding: 0 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #2f1d7a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.HomePageContainer {
    padding-top: 6px;
}

.HomePageContainer > .CRC-AdSection:first-child {
    margin-top: 2px;
}

.HomeCitySwitchBar {
    margin: 14px 0 10px;
    background: #fff;
    border: 1px solid #e4ebf2;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.HomeCitySwitchBar .left {
    color: #1f3448;
    font-size: 14px;
    font-weight: 700;
}

.HomeCitySwitchBar .right {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #0f4f8f;
    border: 1px solid #9fc3ea;
    background: #eaf4ff;
    border-radius: 999px;
    padding: 5px 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.HomeCitySwitchBar .right:hover {
    background: #dcecff;
    color: #0d467d;
}

.HomeQuickGrid {
    margin: 12px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.HomeQuickItem {
    display: block;
    text-align: center;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #17324d;
    background: #eef5ff;
    border: 1px solid #d9e7ff;
}

.HomeBlock {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.HomeBlockTitle {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a2b3b;
}

.TodayLine {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.TodayBadge {
    font-size: 12px;
    border-radius: 999px;
    padding: 3px 9px;
    background: #fff2d8;
    color: #7a4b00;
    border: 1px solid #ffe1ac;
}

.TodayLink {
    font-size: 13px;
    color: #24435b;
    text-decoration: none;
    border: 1px solid #dce7f3;
    background: #f8fbff;
    border-radius: 8px;
    padding: 5px 10px;
}

.HotCityGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.HotCityItem {
    display: block;
    text-align: center;
    background: #f7fafc;
    border: 1px solid #e6edf5;
    border-radius: 10px;
    padding: 8px 6px;
    font-size: 13px;
    color: #2a3e52;
    text-decoration: none;
}

.HotCityItem.is-featured {
    background: #e9f3ff;
    border-color: #b8d3f1;
    color: #163c64;
    font-weight: 700;
}

.GuideLinks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.GuideLinks a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafb;
    border: 1px solid #e6ecef;
    color: #294153;
    font-size: 13px;
    text-decoration: none;
}

.HomeBottomNav {
    margin: 14px 0 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.HomeBottomNav a {
    display: block;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e4eaf2;
    color: #2c3e50;
    padding: 9px 6px;
    font-size: 12px;
    text-decoration: none;
}

.HomeHero {
    margin: 10px 0 12px;
}

.HomeHero h1 {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    color: #17324d;
    margin: 0 0 6px;
}

.HomeHero p {
    font-size: 13px;
    line-height: 1.6;
    color: #5d7082;
    margin: 0;
}

.ProvinceGrid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.ProvinceItem {
    display: block;
    text-align: center;
    background: #fafbfc;
    border: 1px solid #e9eef4;
    border-radius: 8px;
    padding: 7px 4px;
    font-size: 12px;
    color: #3a5169;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ProvinceMore {
    margin-top: 10px;
    text-align: right;
}

.ProvinceMore a {
    font-size: 13px;
    font-weight: 700;
    color: #0f4f8f;
    text-decoration: none;
}

.ActiveRegionGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ActiveRegionItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    background: #fff7ed;
    border: 1px solid #ffe0bd;
    border-radius: 10px;
    padding: 8px 10px;
    text-decoration: none;
}

.ActiveRegionName {
    font-size: 13px;
    font-weight: 700;
    color: #7a4b00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ActiveRegionCount {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: #b06a00;
    background: #ffeed8;
    border-radius: 999px;
    padding: 1px 7px;
}

@media (max-width: 768px) {
    .HomeQuickGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .HotCityGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .GuideLinks {
        grid-template-columns: 1fr;
    }

    .ProvinceGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ActiveRegionGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .HomeHero h1 {
        font-size: 17px;
    }
}

.CitySelectWrap { margin: 14px 0; width: 100%; max-width: 100%; overflow-x: hidden; }
.CitySelectHeader { background:#fff; border:1px solid #e4ebf2; border-radius:12px; padding:12px; margin-bottom:12px; }
.CitySelectHeader h1 { margin:0; font-size:22px; color:#1e3247; }
.CitySelectHeader p { margin:6px 0 0; font-size:13px; color:#55687a; }
.CitySearchBar { margin-top:10px; display:flex; gap:8px; align-items:center; min-width:0; }
.CitySearchInputWrap { flex:1; min-width:0; display:flex; align-items:center; background:#f4f8ff; border:1px solid #cfe0f4; border-radius:10px; padding:0 10px; }
.CitySearchInputWrap i { color:#5f7f9c; font-size:13px; margin-right:6px; }
.CitySearchInput { border:none; background:transparent; width:100%; min-width:0; height:36px; font-size:14px; color:#1f3448; outline:none; }
.CitySearchClear { flex:0 0 auto; border:1px solid #cfe0f4; background:#fff; color:#355a7b; border-radius:10px; padding:7px 10px; font-size:12px; font-weight:700; }
.CitySearchHint { margin-top:8px; font-size:12px; color:#6a7f92; }
.ProvinceBlock { background:#fff; border:1px solid #e6edf4; border-radius:12px; padding:12px; margin-bottom:10px; max-width:100%; }
.ProvinceHead { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:0; }
.ProvinceToggle { border:0; background:transparent; padding:0; display:flex; align-items:center; gap:8px; cursor:pointer; min-width:0; color:#1d3248; }
.ProvinceToggle:focus { outline:2px solid #96c3ef; outline-offset:2px; border-radius:6px; }
.ProvinceTitle { font-size:16px; font-weight:800; color:#1d3248; min-width:0; }
.ProvinceChevron { color:#5a748b; font-size:12px; transition:transform .2s ease; }
.ProvinceBlock.is-open .ProvinceChevron { transform:rotate(180deg); }
.ProvinceAllLink { flex:0 0 auto; font-size:12px; color:#1b5d97; text-decoration:none; border:1px solid #cfe0f4; background:#f3f9ff; border-radius:999px; padding:3px 9px; }
.ProvinceAllLink:hover { background:#e6f1ff; color:#134b7c; }
.ProvincePanel { margin-top:10px; display:none; }
.ProvinceBlock.is-open .ProvincePanel { display:block; }
.CityGrid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:8px; }
.CityItem { display:block; text-align:center; text-decoration:none; color:#294153; background:#f8fbff; border:1px solid #dce7f3; border-radius:9px; padding:8px 6px; font-size:13px; }
.CityEmpty { display:none; background:#fff; border:1px dashed #cfddeb; border-radius:12px; padding:18px; text-align:center; font-size:13px; color:#5f7488; max-width:100%; }
@media (max-width: 768px) { .CityGrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Razor markup adapters for the original shared layout and list cards. */
body.natural-traffic { background: #f0f0f0; }
.natural-traffic #root { padding-top: 0; }
.natural-traffic #root > .site-main { margin-top: 0 !important; padding: 8px 12px; }
.natural-traffic .C-Header { position: relative; z-index: 2; background: #2b2b37; box-shadow: 0 4px 12px #0003; }
.natural-header.navbar { flex-wrap: nowrap; gap: 8px; min-height: 50px; padding: 0 8px; }
.natural-header .navbar-nav .nav-link { color: #fff; white-space: nowrap; padding: 12px 10px; }
.natural-header .navbar-nav .nav-link.active { color: #2b2b37; background: #fff; }
.natural-header .LinkIcon { margin-right: 5px; }
.natural-search { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; margin: 6px 0; }
.natural-search .form-control { min-width: 0; height: 34px; border-radius: 0; }
.natural-search button { height: 34px; border: 0; border-radius: 0; color: #2b2b37; background: #fff; }
.natural-search.HeaderFakeSearch { justify-content: space-between; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid #cfd8e4; border-radius: 8px; color: #748195; background: linear-gradient(#f4f6fb,#eef2f8); text-decoration: none; font-size: 13px; }
.natural-search.HeaderFakeSearch span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.natural-mobile-menu { display: none; }
.natural-footer-note { width: fit-content; max-width: 100%; margin: .2rem auto 1rem; padding: 3px 5px; color: #fff; background: #00ad63; font-size: .8rem; }
.natural-feed { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.InfoItem.datashow { min-width: 0; padding: 10px; border: 1px solid #e5e5e5; border-radius: 5px; background: #fff; overflow: hidden; }
.InfoItem .C-InfoCard { display: flex; gap: 10px; }
.InfoItem .Content { flex: 1 1 auto; min-width: 0; }
.InfoItem.datashow:is(.post-certified, .post-verified, .post-promoted) { position: relative; padding-top: 23px; border-left-width: 4px; }
.InfoItem.datashow.post-certified { --verification-color: #a37108; border-color: #d4a017; background: linear-gradient(135deg,#fffdf5,#fff9e6); }
.InfoItem.datashow.post-verified { --verification-color: #176ab0; border-color: #7fbfed; border-left-color: #2196f3; background: linear-gradient(135deg,#f5faff,#eaf4fe); }
.InfoItem.datashow.post-promoted { border-color: #ffcc80; border-left-color: #ff9800; background: linear-gradient(135deg,#fffaf0,#fff3e0); }
.InfoItem.datashow:is(.post-certified, .post-verified, .post-promoted) .C-InfoCard { background: transparent !important; }
.post-ribbon, .post-badges span { padding: 2px 8px; color: #fff; font-size: 12px; font-weight: 700; }
.post-ribbon { position: absolute; top: 0; right: 0; border-radius: 0 4px 0 8px; background: var(--verification-color, #ad5300); }
.post-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px 16px; }
.post-badges span { border-radius: 999px; }
.post-verification { background: var(--verification-color); }
.post-ad-label { background: #ad5300; }
.post-sponsor { margin: 4px 0 0; font-size: 12px; color: #666; text-align: right; }
.dynamic-card .C-InfoCard { height: auto !important; }
.dynamic-card .Desc { height: auto; }
.dynamic-card .Title { white-space: normal; }
.dynamic-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 8px 0; }
.dynamic-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: #eef2f7; }
.dynamic-gallery img:only-child { max-width: 24rem; }
.dynamic-detail-gallery { display: grid; justify-items: center; gap: 10px; margin: 12px 0; }
.dynamic-detail-gallery img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.InfoItem .Title { font-size: 18px; font-weight: 700; margin-bottom: 5px; overflow-wrap: anywhere; }
.InfoItem .Title a { color: #333; }
.InfoItem .State, .InfoItem .Desc { font-size: 14px; color: #555; }
.InfoItem .Location { margin: 0; font-size: 14px; color: #008348; }
.InfoItem .natural-card-cover { flex: 0 0 auto; max-width: 42%; align-self: flex-start; }
.InfoItem .natural-card-cover .Cover { display: block; max-width: 100%; width: auto; height: 132px; margin: 0; object-fit: contain; border-radius: 4px; }
.CRC-AdSection { margin: 10px 0; }
.CRC-AdViewport { position: relative; width: 100%; overflow: hidden; border: 1px solid #d9e2ef; border-radius: 10px; background: #eef2f7; }
.CRC-AdTrack { display: flex; width: 100%; transition: transform .35s ease; }
.CRC-AdSlide { flex: 0 0 100%; min-width: 100%; }
.CRC-AdCard, .CRC-AdCard img { display: block; width: 100%; }
.CRC-AdCard img { height: auto; border-radius: 10px; }
.CRC-AdDots { position: absolute; inset: auto 0 7px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.CRC-AdDot { width: 6px; height: 6px; border-radius: 50%; background: #ffffff8c; box-shadow: 0 1px 3px #0005; }
.CRC-AdDot.is-active { background: #fff; }
@media (min-width: 768px) {
    .CRC-AdCard img { max-height: 100px; object-fit: contain; background: #fff; }
}
.ProvinceBlock > summary { cursor: pointer; }
.ProvinceBlock[open] > summary { margin-bottom: 10px; }
.ProvinceBlock .CityGrid { margin-top: 10px; }
.ProvinceBlock[hidden], .CityItem[hidden] { display: none; }
.CitySelectWrap { margin-inline: auto; }
.StoryPage { padding-bottom: 20px; }
.StoryHero, .StoryFilter { margin-top: 12px; padding: 18px 20px; background: #fff; border: 1px solid #e6edf5; border-radius: 10px; }
.StoryHero h1 { margin: 0; color: #172033; font-size: 26px; line-height: 1.3; font-weight: 800; }
.natural-traffic .panel { border-color: #e6edf4; border-radius: 12px; }
.natural-traffic .panel h1 { color: #17324d; font-size: 22px; font-weight: 800; }
.detail-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; font-size: 14px; }
.detail-navigation ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.detail-navigation ol > li { display: block; list-style: none; }
.detail-navigation li + li::before { content: "›" / ""; margin-right: 6px; color: #666; }
.detail-return { display: inline-block; padding: 6px 10px; border: 1px solid #d9e2ef; border-radius: 6px; background: #fff; }

@media (max-width: 767px) {
    .natural-header .natural-desktop-menu { display: none; }
    .natural-mobile-menu { display: block; position: relative; color: #fff; }
    .natural-mobile-menu summary { display: grid; place-items: center; width: 40px; height: 40px; font-size: 21px; cursor: pointer; }
    .natural-mobile-menu summary::-webkit-details-marker { display: none; }
    .natural-menu-links { position: absolute; min-width: 110px; background: #2b2b37; box-shadow: 0 4px 10px #0004; }
    .natural-mobile-account .natural-menu-links { right: 0; }
    .natural-menu-links a { display: block; padding: 8px 12px; color: #fff; white-space: nowrap; }
    .natural-menu-links .active { background: #fff; color: #2b2b37; }
    .natural-feed { grid-template-columns: minmax(0,1fr); }
}


.Auth-Wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: radial-gradient(circle at 20% 0%, #eef1ff 0%, #f6f5fb 45%, #f6f5fb 100%); }
.Auth-Card { width: 100%; max-width: 380px; background: #fff; border-radius: 24px; box-shadow: 0 16px 40px rgba(102,126,234,0.16); padding: 36px 30px 28px; box-sizing: border-box; }
.Auth-Badge { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(102,126,234,0.35); }
.Auth-Badge i { color: #fff; font-size: 26px; }
.Auth-Title { text-align: center; font-size: 22px; font-weight: 700; color: #262233; margin: 0; }
.Auth-Sub { text-align: center; font-size: 13px; color: #948fb0; margin: 6px 0 26px; }
.Auth-Field { margin-bottom: 16px; }
.Auth-Field .layui-input { width: 100%; height: 48px; padding: 0 16px; border: 2px solid #eae7f5; border-radius: 12px; font-size: 15px; color: #262233; box-sizing: border-box; background: #fbfaff; transition: border-color .2s, background .2s; }
.Auth-Field .layui-input:focus { border-color: #6548da; background: #fff; outline: none; }
.Auth-Submit { width: 100%; height: 48px; line-height: 48px; border: none; border-radius: 12px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-size: 16px; font-weight: 600; margin-top: 6px; box-shadow: 0 8px 18px rgba(102,126,234,0.3); }
.Auth-Links { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; font-size: 13px; }
.Auth-Links a { color: #6548da; text-decoration: none; }
.Auth-Links .sep { color: #d9d5ef; }
.Auth-PwdWrap { position: relative; }
.Auth-PwdWrap .layui-input { padding-right: 46px; }
.Auth-PwdEye { position: absolute; top: 0; right: 0; width: 44px; height: 48px; display: flex; align-items: center; justify-content: center; color: #a9a3c4; cursor: pointer; font-size: 15px; }
.Auth-Submit[disabled] { opacity: .6; }
      

.E-Page {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 14px;
    background: radial-gradient(circle at top right, #fff4d6 0%, #fff 45%), linear-gradient(135deg, #f7fbff 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
}
.E-Badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #1f3f7a;
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
}
.E-Title {
    margin: 12px 0 8px;
    font-size: 34px;
    line-height: 1.25;
    color: #1e2a44;
    font-weight: 700;
}
.E-Text {
    font-size: 17px;
    color: #3d4b63;
    margin-bottom: 18px;
}
.E-Mail {
    font-size: 15px;
    color: #2f3952;
    margin-bottom: 14px;
}
.E-Mail code {
    color: #d63384;
    background: #fff;
    border: 1px solid #f3c6df;
    border-radius: 6px;
    padding: 2px 6px;
}
.E-Actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.E-Button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid #d2dcf4;
    background: #fff;
    color: #1e2a44;
}
.E-Button.Primary {
    background: #1f3f7a;
    color: #fff;
    border-color: #1f3f7a;
}
.E-Tips {
    margin: 0;
    padding-left: 18px;
    color: #485673;
    line-height: 1.7;
    font-size: 14px;
}
@media (max-width: 768px) {
    .E-Title { font-size: 28px; }
    .E-Page { padding: 14px; }
}

