/* ==========================================================================
   Apple Light Theme  -  front-end skin
   Replaces the legacy dark "tech" theme.
   Token block is kept in sync with /static/admin/css/apple.css
   ========================================================================== */

/* --- 图标字体子集：全站只用到 6 个 fa 图标，76KB → 1KB ---
   图标码位：search f002 / home f015 / clock-o f017 / eye f06e
             list-ul f0ca / angle-up f106
   .fa 的 ::before content 仍由 font-awesome.min.css 提供，这里只换字体源。 */
@font-face {
    font-family: 'FA-Subset';
    src: url('../fonts/fa-subset.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.fa {
    font-family: 'FA-Subset' !important;
}

:root {
    /* --- surfaces --- */
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #fafafa;
    --bg-hover: rgba(0, 0, 0, 0.035);

    /* --- lines --- */
    --border-glow: rgba(0, 0, 0, 0.08);
    --hairline: rgba(0, 0, 0, 0.075);
    --hairline-strong: rgba(0, 0, 0, 0.12);

    /* --- type --- */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;

    /* --- brand accent (gold) --- */
    --accent: #b8862b;
    --accent-strong: #96691c;
    --accent-soft: rgba(184, 134, 43, 0.10);
    --accent-gold: #b8862b;
    /* legacy alias kept so older inline styles keep working */
    --accent-cyan: #b8862b;

    /* --- market colours --- */
    --up-color: #e5484d;
    --down-color: #1a9c53;

    /* --- shape & depth --- */
    --glass-blur: 20px;
    --card-radius: 18px;
    --radius-sm: 10px;
    --radius-pill: 980px;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -14px rgba(0, 0, 0, 0.16);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 40px -20px rgba(0, 0, 0, 0.22);

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
        "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0;
}

/* subtle top wash instead of the old particle field */
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 420px;
    background:
        radial-gradient(900px 320px at 18% -8%, rgba(184, 134, 43, 0.09), transparent 62%),
        radial-gradient(760px 300px at 82% -12%, rgba(90, 120, 200, 0.07), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: rgba(184, 134, 43, 0.18);
    color: var(--text-primary);
}

a {
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--accent) !important;
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
    background-clip: content-box;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    border-bottom: 1px solid var(--hairline) !important;
    padding: 0.35rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.25s ease;
}

.navbar.navbar-scrolled {
    box-shadow: 0 1px 0 var(--hairline), 0 8px 24px -18px rgba(0, 0, 0, 0.35);
}

.navbar-brand.logo picture {
    display: block;
}

.navbar-brand.logo img {
    max-height: 38px;
    height: auto;
    width: auto;
    display: block;
    filter: none;
    transition: opacity 0.2s ease;
}

.navbar-brand.logo:hover img {
    opacity: 0.78;
    filter: none;
}

.navbar-nav {
    align-items: center;
    gap: 2px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 0.42rem 0.8rem !important;
    border-radius: var(--radius-sm);
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-hover) !important;
}

.nav-item.hover > .nav-link,
.nav-item.active > .nav-link {
    color: var(--accent) !important;
    background: var(--accent-soft) !important;
}

.navbar-toggler {
    border: 1px solid var(--hairline-strong) !important;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.5rem;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(29,29,31,0.72)' stroke-width='2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E") !important;
}

/* search field */
.input-group {
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
    background: #fff;
    border-color: rgba(184, 134, 43, 0.45);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-control {
    background: transparent !important;
    border: 0 !important;
    color: var(--text-primary) !important;
    font-size: 14px;
    height: 36px;
    padding: 0 0 0 14px;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-control:focus {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.input-group .btn {
    border: 0 !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    padding: 0 14px;
}

.input-group .btn:hover {
    color: var(--accent) !important;
}

/* mobile search trigger */
#mobileSearchBtn {
    color: var(--text-primary) !important;
    padding: 0.2rem 0.4rem;
}

#mobileSearchBtn i {
    font-size: 18px !important;
}

/* ==========================================================================
   Ticker strip
   ========================================================================== */

.ticker-bar {
    background: #fff !important;
    border-bottom: 1px solid var(--hairline) !important;
    padding: 9px 0 !important;
    position: relative;
    overflow: hidden;
    font-size: 13px;
}

.ticker-bar .container {
    position: relative;
    z-index: 1;
}

.ticker-bar::before,
.ticker-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}

.ticker-bar::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.ticker-bar::after {
    right: 0;
    background: linear-gradient(-90deg, #fff, rgba(255, 255, 255, 0));
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    white-space: nowrap;
    color: var(--text-secondary);
}

.ticker-label {
    color: var(--accent);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.ticker-sep {
    width: 1px;
    height: 13px;
    background: var(--hairline-strong);
    flex: 0 0 auto;
}

.ticker-item {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Cards / boxes
   ========================================================================== */

.content-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--shadow-1);
    padding: 20px 22px !important;
    margin-bottom: 18px;
    backdrop-filter: none !important;
    animation: none !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-box:hover {
    border-color: var(--hairline-strong) !important;
    box-shadow: var(--shadow-2);
    transform: none !important;
}

.shadow {
    box-shadow: var(--shadow-1) !important;
}

.content-box h1.title {
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
}

.info {
    color: var(--text-secondary);
}

.info span,
.info p {
    color: var(--text-secondary) !important;
    font-size: 13px;
}

/* section headings */
.section-title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary) !important;
    position: relative;
    padding-left: 13px;
    margin: 0 0 14px;
    display: block;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, #d3a14e, var(--accent));
    box-shadow: none;
}

h4.section-title,
h6.section-title {
    color: var(--text-primary) !important;
}

/* ==========================================================================
   Quote list (list-container)
   ========================================================================== */

.list-container {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible;
}

.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-header {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--hairline) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0;
    color: var(--text-muted) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 10px 14px !important;
}

.list-item {
    background: #fff !important;
    border: 1px solid var(--hairline) !important;
    border-top: 0 !important;
    padding: 12px 14px !important;
    color: var(--text-primary) !important;
    transition: background 0.16s ease;
}

.list-item:last-child {
    border-radius: 0 0 12px 12px;
}

.list-item:hover {
    background: var(--bg-subtle) !important;
    transform: none !important;
    box-shadow: none !important;
}

.list-item .name a {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.list-item .name a:hover {
    color: var(--accent) !important;
}

.danwei {
    font-size: 11px;
    color: var(--text-muted) !important;
    margin-left: 2px;
}

.list-header > div,
.list-item > div {
    flex: 1;
}

.list-header .name,
.list-item .name {
    flex: 1.4;
}

.text-success {
    color: var(--down-color) !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.text-danger {
    color: var(--up-color) !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Article list (list-unstyled)
   ========================================================================== */

.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-unstyled li {
    border-bottom: 1px solid var(--hairline) !important;
    padding: 14px 0 !important;
    transition: none;
}

.list-unstyled li:first-child {
    padding-top: 2px !important;
}

.list-unstyled li:last-child {
    border-bottom: 0 !important;
    padding-bottom: 2px !important;
}

.list-unstyled li:hover {
    border-bottom-color: var(--hairline) !important;
}

.list-unstyled li .list-image {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-subtle);
}

.list-unstyled li .item-img-inner {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--hairline);
    box-shadow: none;
    transition: box-shadow 0.22s ease;
}

.list-unstyled li:hover .item-img-inner {
    box-shadow: var(--shadow-2);
    transform: none;
}

.list-unstyled li .item-img-inner:before {
    padding-top: 62.5%;
    content: "";
    display: block;
}

.list-unstyled li .item-img-inner img {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

.list-unstyled li .item-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.list-unstyled li .item-title a {
    color: var(--text-primary) !important;
}

.list-unstyled li .item-title a:hover {
    color: var(--accent) !important;
}

.list-unstyled li .item-excerpt {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary) !important;
}

.list-unstyled li .item-excerpt p {
    color: var(--text-secondary) !important;
    margin: 0;
}

.list-unstyled li .item-meta {
    color: var(--text-muted) !important;
    font-size: 0.78rem;
    margin-top: 8px;
}

.list-unstyled li .item-meta i {
    color: var(--text-muted);
    margin-right: 4px;
}

/* ==========================================================================
   Tags
   ========================================================================== */

.tags {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-secondary) !important;
    padding: 4px 12px !important;
    font-size: 12.5px;
    transition: all 0.18s ease;
}

.tags a {
    color: var(--text-secondary) !important;
}

.tags:hover {
    background: #fff !important;
    border-color: rgba(184, 134, 43, 0.4) !important;
    color: var(--accent) !important;
    box-shadow: var(--shadow-1);
}

.tags:hover a {
    color: var(--accent) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    padding: 0.44rem 1rem;
    transition: all 0.18s ease;
    box-shadow: none !important;
}

.btn-primary {
    background: linear-gradient(180deg, #d3a14e, #b8862b) !important;
    border: 1px solid #a97a22 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, #c8933f, #a97a22) !important;
    border-color: #96691c !important;
    color: #fff !important;
}

.btn-outline-secondary {
    background: #fff !important;
    border: 1px solid var(--hairline-strong) !important;
    color: var(--text-primary) !important;
}

.btn-outline-secondary:hover {
    background: var(--bg-subtle) !important;
    border-color: rgba(184, 134, 43, 0.45) !important;
    color: var(--accent) !important;
}

.btn-outline-light {
    background: transparent !important;
    border: 0 !important;
    color: var(--text-secondary) !important;
}

.btn-outline-light:hover {
    background: var(--bg-hover) !important;
    border: 0 !important;
    color: var(--accent) !important;
}

.btn-link {
    color: var(--text-secondary) !important;
}

.btn-link:hover {
    color: var(--accent) !important;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 4px;
}

.pagesize,
.current {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}

.pagesize {
    color: var(--text-secondary) !important;
    border: 1px solid var(--hairline-strong) !important;
    background: #fff !important;
    transition: all 0.18s ease;
}

.pagesize:hover {
    background: var(--bg-subtle) !important;
    color: var(--accent) !important;
    border-color: rgba(184, 134, 43, 0.45) !important;
}

.current {
    background: var(--text-primary) !important;
    color: #fff !important;
    border: 1px solid var(--text-primary) !important;
    font-weight: 600;
    box-shadow: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: transparent !important;
    border-top: 1px solid var(--hairline) !important;
    color: var(--text-muted) !important;
    margin-top: 32px;
    font-size: 12.5px;
}

.footer a {
    color: var(--text-secondary) !important;
    transition: color 0.18s ease;
}

.footer a:hover {
    color: var(--accent) !important;
}

.foot-links a,
.foot-nav a {
    padding: 0 8px;
    color: var(--text-secondary) !important;
    font-size: 12.5px;
    transition: color 0.18s ease;
}

.foot-links a:hover,
.foot-nav a:hover {
    color: var(--accent) !important;
}

/* ==========================================================================
   Floating action rail
   ========================================================================== */

.rollbar {
    position: fixed;
    bottom: 30%;
    z-index: 99;
    display: block;
    right: 16px;
    left: auto;
    margin-left: 0;
}

.rollbar .actions {
    position: relative;
    width: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rollbar .actions .contbar {
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--hairline) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-2);
    color: var(--text-secondary) !important;
    transition: all 0.2s ease;
}

.rollbar .actions .contbar:hover {
    border-color: rgba(184, 134, 43, 0.4) !important;
    box-shadow: var(--shadow-3);
    transform: translateY(-1px);
    color: var(--accent) !important;
}

.rollbar .actions .contbar > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: 0;
    opacity: 1;
    color: inherit !important;
}

.rollbar .actions .contbar > a > i {
    font-size: 19px;
    margin: 0;
}

.rollbar .rollbar-item {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.rollbar .rollbar-item:hover {
    border-color: rgba(184, 134, 43, 0.4);
    box-shadow: var(--shadow-3);
    color: var(--accent);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
    background: transparent !important;
    border: 0 !important;
    padding: 2px 0 14px !important;
    margin: 0 !important;
    font-size: 13px;
}

.breadcrumb a,
.breadcrumb span {
    color: var(--text-secondary);
    padding: 0 6px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Content area / tables
   ========================================================================== */

.tool_show {
    background: #fff !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--shadow-1);
    color: var(--text-primary) !important;
}

.content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13.5px;
}

.content table caption {
    color: var(--text-muted);
    font-size: 12.5px;
    padding: 8px 0;
}

.content table th,
.content table td {
    border-bottom: 1px solid var(--hairline) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 10px 14px !important;
    color: var(--text-primary);
    text-align: left;
}

.content table th {
    background: var(--bg-subtle) !important;
    font-weight: 600;
    color: var(--text-secondary) !important;
    font-size: 12.5px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.content table tr:last-child td {
    border-bottom: 0 !important;
}

.content table tr:nth-child(even) {
    background: transparent;
}

.content table tr:hover td {
    background: var(--bg-subtle);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-content {
    background: #fff !important;
    border: 1px solid var(--hairline) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-3);
    color: var(--text-primary) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--hairline) !important;
    padding: 18px 22px 14px;
}

.modal-title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-primary) !important;
    padding: 18px 22px;
}

.modal-footer {
    border-top: 1px solid var(--hairline) !important;
    padding: 14px 22px 18px;
}

.btn-close {
    filter: none !important;
    opacity: 0.4;
}

.btn-close:hover {
    opacity: 0.75;
}

/* ==========================================================================
   Region index (area-list) - used by the city directory page
   ========================================================================== */

.bg-f {
    background: #fff !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--shadow-1);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.area-list {
    background: transparent;
    padding: 0;
}

.area-list-prov {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 14px 0 8px;
}

.area-list h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 16px 0 8px;
}

.area-list-city,
.area-list-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-list-city a,
.area-list-area a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1px solid var(--hairline);
    color: var(--text-secondary) !important;
    font-size: 13px;
    transition: all 0.16s ease;
}

.area-list-city a:hover,
.area-list-area a:hover {
    background: #fff;
    border-color: rgba(184, 134, 43, 0.45);
    color: var(--accent) !important;
    box-shadow: var(--shadow-1);
}

/* ==========================================================================
   Ad slots - keep them quiet on a light canvas
   ========================================================================== */

/* --- AdSense slots --------------------------------------------------------
   No decorative frame: once the unit fills, the ad stands on its own.
   When AdSense reports the unit as unfilled we collapse the wrapper so an
   unsold impression never leaves an empty hole in the layout. */
.adsense-container {
    background: transparent !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none;
    overflow: hidden;
}

.adsense-container:has(> .adsbygoogle[data-ad-status="unfilled"]),
.adsense-row:has(.adsbygoogle[data-ad-status="unfilled"]),
.adsense-article:has(> .adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
}

/* A card that exists only to hold one ad should vanish with it, otherwise an
   unsold slot leaves an empty white panel behind. */
.content-box:has(> .adsense-container:only-child > .adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
}

.adsense-row {
    background: transparent;
}

.adsense-article {
    background: transparent;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 990px) {
    .navbar {
        padding: 0.3rem 0;
    }

    .navbar-collapse {
        background: #fff;
        border: 1px solid var(--hairline);
        border-radius: 14px;
        box-shadow: var(--shadow-2);
        margin-top: 8px;
        padding: 8px;
    }

    .nav-link {
        padding: 0.55rem 0.7rem !important;
    }

    .content-box {
        padding: 16px 16px !important;
        border-radius: 16px !important;
    }

    .content-box h1.title {
        font-size: 1.15rem;
    }

    .ticker-bar {
        font-size: 12px;
    }

    .ticker-inner {
        overflow-x: auto;
        scrollbar-width: none;
        gap: 14px;
    }

    .ticker-inner::-webkit-scrollbar {
        display: none;
    }

    .rollbar {
        right: 10px;
        bottom: 24%;
    }
}

@media (max-width: 568px) {
    body {
        font-size: 14.5px;
    }

    .navbar-brand.logo img {
        max-height: 31px;
    }

    .content-box {
        padding: 14px 13px !important;
        margin-bottom: 12px;
        border-radius: 15px !important;
    }

    .section-title {
        font-size: 0.96rem;
    }

    .list-item {
        padding: 10px 11px !important;
        font-size: 13.5px;
    }

    /* 行情表格在窄屏内部横向滚动，避免整页被撑宽 */
    .list-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .list-container::-webkit-scrollbar {
        display: none;
    }

    /* 只有行情表格需要 460px 的固有宽度（在 .list-container 内横向滚动），
       其它 .list-group（如侧栏「猜您喜歡」）必须跟随容器宽度 */
    .list-container .list-group {
        min-width: 460px;
    }

    .list-header,
    .list-item {
        font-size: 12.5px;
    }

    .list-header > div,
    .list-item > div {
        min-width: 0;
        white-space: nowrap;
    }

    .list-unstyled li .item-title {
        font-size: 0.94rem;
    }

    .pagesize,
    .current {
        padding: 6px 11px;
        font-size: 13px;
    }

    .rollbar .rollbar-item {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
    }
}
