/* 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; height: auto !important; }
.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-sponsor { margin: 4px 0 0; font-size: 12px; color: #666; text-align: right; }
.dynamic-card .C-InfoCard { height: auto !important; }
.feed-filters { padding: 10px 12px; margin: 10px 0; border: 1px solid #e1e7ed; background: #fff; border-radius: 10px; }
.feed-filters nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 5px 0; }
.feed-filters nav > span { margin-right: 5px; color: #667085; font-size: 13px; }
.feed-filters a { padding: 5px 9px; border-radius: 6px; color: #344054; font-size: 14px; }
.feed-filters a.selected { background: #254b86; color: #fff; }
.dynamic-author { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.dynamic-author img, .avatar-placeholder { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #edf1f5; flex-shrink: 0; }
.avatar-placeholder { display: grid; place-items: center; color: #667085; }
.dynamic-author time { font-size: 12px; color: #667085; }
.post-rich-content { line-height: 1.7; overflow-wrap: anywhere; padding: 0 8px; }
.post-rich-content p { margin: 0 0 8px; }
.post-rich-content blockquote { padding-left: 10px; border-left: 3px solid #b8c8db; }
#comment-form { display: grid; gap: 8px; margin-bottom: 16px; }
#comment-form textarea { width: 100%; padding: 10px; font: inherit; border: 1px solid #b8c8db; border-radius: 8px; resize: vertical; }
#comment-form button { justify-self: start; }
.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 .C-InfoCard .Content .Desc { height: auto; margin-bottom: 4px; }
.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;
}
.detail-safety { padding: 16px; margin: 16px 0; border-left: 4px solid #b36a18; background: #fff8e9; line-height: 1.8; }
.detail-rules { padding: 14px 0; border-top: 1px solid #dce4f0; line-height: 1.8; scroll-margin-top: 24px; }
.detail-rules summary { cursor: pointer; font-weight: 700; }
.detail-image-link { display: inline-block; max-width: 100%; cursor: zoom-in; }
.detail-image-link img { max-width: 100%; height: auto; }
#detail-gallery { padding: 12px; border: 0; border-radius: 12px; background: #142033; color: white; width: min(960px, 94vw); max-width: 94vw; max-height: 92vh; }
#detail-gallery::backdrop { background: rgb(0 0 0 / 80%); }
#gallery-image { display: block; margin: auto; max-width: 100%; max-height: 76vh; object-fit: contain; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 12px; }
.gallery-controls button { padding: 8px 12px; cursor: pointer; }
.membership-status { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.membership-status dt { font-weight: 700; }
.membership-status dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) {
    .E-Title { font-size: 28px; }
    .E-Page { padding: 14px; }
}

/* Restored browsing, support and archive controls. */
.browse-filters { padding:16px; margin:16px 0; border:1px solid #dce4f0; border-radius:12px; background:#fff; }
.browse-filter-row { display:grid; grid-template-columns:100px 1fr; gap:10px; padding:10px 0; border-top:1px solid #edf0f5; }
.browse-filter-row .site-links { margin:0; }
.browse-filter-row a.selected { background:#284d82; color:#fff; border-radius:6px; padding:5px 9px; }
.post-rich-content img { max-width:100%; height:auto; }
.post-rich-content table { border-collapse:collapse; display:block; max-width:100%; overflow-x:auto; margin:16px 0; }
.post-rich-content th,.post-rich-content td { border:1px solid #ccd6e4; padding:8px 12px; }
.post-rich-content pre { overflow-x:auto; padding:16px; background:#f3f5f9; border-radius:8px; white-space:pre; }
.app-download-banner[hidden],.story-back-top[hidden],.runtime-ad-slot[hidden] { display:none; }
.app-download-banner { position:fixed; z-index:1000; left:16px; right:16px; bottom:calc(16px + env(safe-area-inset-bottom,0px)); display:flex; align-items:center; gap:14px; max-width:560px; margin:auto; padding:16px; border-radius:14px; color:#fff; background:#284d82; box-shadow:0 5px 24px #152c4c40; }
.app-download-banner div { flex:1; min-width:0; }
.app-download-banner p { margin:4px 0 0; font-size:12px; }
.app-download-banner a { background:white; color:#284d82; padding:10px; border-radius:8px; white-space:nowrap; }
.app-download-banner button { border:0; background:transparent; color:white; min-width:36px; min-height:44px; font-size:24px; cursor:pointer; }
body.app-download-visible { padding-bottom:120px; }
.technical-help { max-width:520px; width:calc(100% - 32px); max-height:85vh; padding:24px; border:0; border-radius:14px; line-height:1.8; overflow-y:auto; }
.technical-help::backdrop { background:#142033bb; }
.technical-help section { margin:18px 0; }
.technical-help [data-technical-help-close] { display:block; width:100%; padding:12px; border:0; border-radius:8px; background:#284d82; color:white; cursor:pointer; }
[data-app-download][aria-disabled="true"] { color:#65738a; }
.story-back-top { position:fixed; z-index:900; bottom:calc(140px + env(safe-area-inset-bottom,0px)); right:16px; width:44px; height:44px; border:1px solid #cbd6e5; border-radius:50%; background:#fff; color:#284d82; box-shadow:0 2px 12px #14203325; cursor:pointer; }
.runtime-ad-slot .CRC-AdDots { pointer-events:auto; }
.runtime-ad-slot button.CRC-AdDot { border:0; padding:0; width:10px; height:10px; cursor:pointer; }
.companionship { max-width:960px; margin:auto; }
.companionship #archive-search { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.companionship button,.companionship input { min-height:40px; padding:8px 12px; }
.companionship [aria-current="page"] { font-weight:bold; color:#284d82; text-decoration:underline; }
.archive-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:10px; }
.archive-photo { display:block; cursor:zoom-in; }
.archive-photo img { width:100%; max-height:320px; object-fit:contain; }
.archive-gallery video,.archive-gallery audio { width:100%; max-height:70vh; }
.archive-history { margin-top:12px; padding:12px 0; border-top:1px solid #dde5ef; }
.archive-history summary { cursor:pointer; }
.archive-revision { margin:16px 0; padding-top:12px; border-top:1px solid #dde5ef; }
#archive-lightbox { padding:12px; width:min(960px,94vw); max-width:94vw; max-height:92vh; border:0; border-radius:12px; background:#142033; color:white; }
#archive-lightbox::backdrop { background:#000c; }
#archive-full-image { display:block; margin:auto; max-width:100%; max-height:76vh; object-fit:contain; }
@media(max-width:600px) { .browse-filter-row { grid-template-columns:1fr; } .app-download-banner { gap:8px; padding:12px; left:8px; right:8px; } }

.membership-table-scroll{overflow-x:auto}.membership-comparison table{width:100%;border-collapse:collapse}.membership-comparison th,.membership-comparison td{padding:.7rem;border:1px solid #ddd;text-align:left;white-space:nowrap}
