/* 榆树家园 (ys0431.net) — 2026 Modern Local Portal Stylesheet (Local Only, Mobile-First 375px Safe) */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --blue: #12589c;
    --blue-dark: #0d4175;
    --blue-soft: #eaf2fb;
    --orange: #e06b0b;
    --orange-soft: #fff4ea;
    --teal: #0f766e;
    --teal-soft: #e6f6f4;
    --green: #1d7a46;
    --indigo: #3949ab;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1b2430;
    --text-muted: #5b6778;
    --border: #e3e8ef;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(18, 42, 74, 0.05);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    word-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--orange);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Header & Utility Bar */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.top-utility {
    background: #0d3a66;
    color: #d9e8f7;
    font-size: 0.8125rem;
}

.top-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: wrap;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.city-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 1px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.utility-right a {
    color: #e8f2fc;
}

.utility-right a:hover {
    color: #ffd099;
}

.sep {
    opacity: 0.5;
}

/* Brand Bar */
.brand-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo img {
    height: 54px;
    width: auto;
}

.brand-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    border-left: 2px solid var(--border);
    padding-left: 12px;
}

.header-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 390px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 9px 12px;
    font-size: 0.9rem;
    outline: none;
    color: var(--text);
}

.header-search button {
    border: 0;
    background: var(--blue);
    color: #fff;
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.header-search button:hover {
    background: var(--blue-dark);
}

/* Main Navigation */
.main-nav {
    background: var(--blue);
}

.nav-inner {
    padding-top: 0;
    padding-bottom: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.nav-list li {
    flex: 0 0 auto;
}

.nav-list a {
    display: block;
    color: #eff6ff;
    padding: 11px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-bottom-color: #ff9c38;
}

/* Announcement Bar (Mandatory Homepage Banner) */
.announce-bar {
    background: var(--orange-soft);
    border-bottom: 1px solid #f7d9bd;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.announce-tag {
    flex: 0 0 auto;
    background: var(--orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.announce-text {
    margin: 0;
    font-size: 0.875rem;
    color: #7c3a00;
    line-height: 1.5;
}

/* Main Content Spacing */
.site-main {
    padding: 20px 0 42px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.hero-lead {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-cover-link {
    position: relative;
    display: block;
    background: #dbe9f8;
    overflow: hidden;
}

.hero-cover-link img {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(18, 88, 156, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.hero-lead-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-lead-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.4;
}

.hero-lead-title a {
    color: var(--text);
}

.hero-lead-title a:hover {
    color: var(--blue);
}

.hero-lead-summary {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    flex: 1;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.read-more {
    margin-left: auto;
    font-weight: 600;
    color: var(--orange);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-list-card {
    padding: 16px 18px;
    flex: 1;
}

.section-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-soft);
}

.section-mini-head h2 {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--blue-dark);
}

.section-mini-head a {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

.headline-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
}

.headline-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hl-num {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.hl-body {
    min-width: 0;
    flex: 1;
}

.hl-title {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 4px;
}

.hl-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tag-pill {
    display: inline-block;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* City Pulse Card */
.city-pulse-card {
    padding: 15px 18px;
    background: linear-gradient(135deg, #f0f6fd 0%, #fff9f2 100%);
}

.pulse-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.pulse-city {
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 0.95rem;
}

.pulse-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.btn-outline-sm {
    flex: 0 0 auto;
    border: 1px solid var(--blue);
    color: var(--blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fff;
}

.btn-outline-sm:hover {
    background: var(--blue);
    color: #fff;
}

.pulse-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
}

.metric-box strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--orange);
}

.metric-box span {
    font-size: 0.75rem;
    color: var(--text);
}

/* Tools Strip */
.tools-strip {
    margin-bottom: 24px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.section-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
}

.section-sub {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.more-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
}

.tool-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    color: var(--text);
}

.tool-icon {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.tool-icon-blue { background: var(--blue); }
.tool-icon-orange { background: var(--orange); }
.tool-icon-teal { background: var(--teal); }
.tool-icon-slate { background: #3b4f69; }

.tool-info h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: var(--text);
}

.tool-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Classified Directory Board */
.classified-section {
    padding: 20px;
    margin-bottom: 24px;
}

.classified-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text);
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.listing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.listing-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: #fcfdff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.listing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.listing-area {
    font-size: 0.78rem;
    background: var(--blue-soft);
    color: var(--blue-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.listing-price {
    font-weight: 800;
    color: var(--orange);
    font-size: 0.95rem;
}

.listing-title {
    margin: 2px 0 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}

.listing-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex: 1;
}

.listing-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    font-size: 0.75rem;
}

.listing-tag {
    color: var(--teal);
    font-weight: 600;
}

.listing-date {
    color: var(--text-muted);
}

.panel-footer {
    margin-top: 14px;
    text-align: right;
}

/* Main Portal Two-Column Layout */
.portal-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.channel-box {
    padding: 16px;
}

.channel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--blue);
}

.channel-head.accent-orange { border-bottom-color: var(--orange); }
.channel-head.accent-green { border-bottom-color: var(--green); }
.channel-head.accent-teal { border-bottom-color: var(--teal); }
.channel-head.accent-indigo { border-bottom-color: var(--indigo); }
.channel-head.accent-slate { border-bottom-color: #475569; }

.channel-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.channel-head h2 a {
    color: var(--text);
}

.channel-tagline {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.channel-more {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.channel-lead {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.channel-thumb {
    flex: 0 0 120px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--blue-soft);
}

.channel-thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.channel-lead-info {
    min-width: 0;
    flex: 1;
}

.channel-lead-info h3 {
    margin: 0 0 5px;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.channel-lead-info h3 a {
    color: var(--text);
}

.channel-lead-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.channel-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.875rem;
}

.channel-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.channel-list a {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-list a:hover {
    color: var(--blue);
}

.channel-list span {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar */
.portal-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aside-box {
    padding: 16px 18px;
}

.aside-title {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--blue-dark);
    padding-left: 10px;
    border-left: 4px solid var(--orange);
}

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

.rank-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.875rem;
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-num {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 5px;
    background: #eef2f6;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.rank-num.top {
    background: var(--orange);
    color: #fff;
}

.rank-list a {
    color: var(--text);
    line-height: 1.45;
}

.fact-list {
    margin: 0;
}

.fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.85rem;
}

.fact-list div:last-child {
    border-bottom: 0;
}

.fact-list dt {
    color: var(--text-muted);
}

.fact-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.town-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.town-chips span {
    background: #f1f5f9;
    color: var(--text);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Breadcrumb & Category Banner */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.cat-banner {
    padding: 20px 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #eef5fc 100%);
    border-left: 5px solid var(--blue);
}

.cat-banner h1 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    color: var(--blue-dark);
}

.cat-banner-desc {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.cat-banner-meta {
    font-size: 0.8125rem;
    color: var(--blue);
    font-weight: 600;
}

.sub-listings-box {
    padding: 18px;
    margin-bottom: 18px;
}

/* Article Feed */
.article-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-card {
    display: flex;
    gap: 16px;
    padding: 16px;
}

.feed-thumb {
    flex: 0 0 210px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--blue-soft);
}

.feed-thumb img {
    width: 210px;
    height: 132px;
    object-fit: cover;
}

.feed-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-title {
    margin: 4px 0 8px;
    font-size: 1.125rem;
    line-height: 1.4;
}

.feed-title a {
    color: var(--text);
}

.feed-summary {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}

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

.side-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
}

.side-cat-list a small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.side-cat-list a:hover,
.side-cat-list a.active {
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 600;
}

.page-link.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* Article Detail */
.article-detail {
    padding: 26px 30px;
}

.cat-pill {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-title {
    margin: 0 0 10px;
    font-size: 1.65rem;
    line-height: 1.38;
    color: var(--text);
}

.article-subtitle {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--text-muted);
}

.article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.825rem;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.article-cover {
    margin-bottom: 18px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--blue-soft);
}

.article-cover img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.article-lead-quote {
    background: var(--blue-soft);
    border-left: 4px solid var(--blue);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 22px;
    font-size: 0.95rem;
    color: #1e3a5f;
}

.article-body {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #243040;
}

.article-body h2 {
    font-size: 1.25rem;
    color: var(--blue-dark);
    margin: 26px 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--orange);
}

.article-body h3 {
    font-size: 1.08rem;
    margin: 18px 0 8px;
    color: var(--text);
}

.article-body p {
    margin: 0 0 14px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #fff8f0;
    border-left: 4px solid var(--orange);
    border-radius: 0 8px 8px 0;
    color: #6b3b09;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.tag-chip {
    background: #f1f5f9;
    color: var(--blue-dark);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
}

.article-notice {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.pn-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pn-item a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.pn-next {
    text-align: right;
}

.related-box {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid var(--blue-soft);
}

.related-box h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    color: var(--blue-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.related-card {
    display: block;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafcff;
    color: var(--text);
}

.related-card h3 {
    margin: 0 0 6px;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.related-card p {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.related-card span {
    font-size: 0.75rem;
    color: var(--blue);
}

.aside-cta {
    background: linear-gradient(135deg, #12589c 0%, #0d3a66 100%);
    color: #fff;
}

.aside-cta .aside-title {
    color: #fff;
    border-left-color: #ff9c38;
}

.aside-cta-text {
    margin: 0 0 14px;
    font-size: 0.875rem;
    color: #dcebfa;
}

.btn-primary-block {
    display: block;
    text-align: center;
    background: var(--orange);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary-block:hover {
    background: #c75c06;
    color: #fff;
}

/* Tools Page */
.tools-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tool-panel {
    padding: 22px 24px;
}

.tool-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-soft);
}

.tool-panel-head h2 {
    margin: 0;
    font-size: 1.18rem;
    color: var(--blue-dark);
}

.badge-blue, .badge-orange, .badge-teal {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
}

.badge-blue { background: var(--blue-soft); color: var(--blue-dark); }
.badge-orange { background: var(--orange-soft); color: #9c4700; }
.badge-teal { background: var(--teal-soft); color: var(--teal); }

.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: start;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}

.btn-primary {
    display: inline-block;
    border: 0;
    background: var(--blue);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--blue);
    color: var(--blue);
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.calc-result {
    background: #f8fbff;
    border: 1px solid #d7e5f5;
    border-radius: 10px;
    padding: 18px;
}

.res-highlight {
    background: var(--blue);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 14px;
}

.res-highlight-orange {
    background: var(--orange);
}

.res-highlight span {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.9;
}

.res-highlight strong {
    display: block;
    font-size: 1.65rem;
    margin-top: 4px;
}

.res-list {
    margin: 0 0 12px;
}

.res-list div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #d5e2f0;
    font-size: 0.9rem;
}

.res-list dd {
    margin: 0;
    font-weight: 700;
}

.res-note {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.panel-intro {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.prompt-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: #fafcff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prompt-card h3 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--blue-dark);
}

.prompt-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.6;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    flex: 1;
}

.btn-copy {
    align-self: flex-start;
    border: 1px solid var(--teal);
    background: #fff;
    color: var(--teal);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-copy:hover,
.btn-copy.copied {
    background: var(--teal);
    color: #fff;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.div-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.div-box h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: var(--blue-dark);
}

.div-box p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
}

.hotline-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    background: var(--orange-soft);
    border: 1px solid #f7d9bd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #7c3a00;
}

/* Weather Page */
.season-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.season-card {
    padding: 20px;
}

.season-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.tag-spring { background: #1d7a46; }
.tag-summer { background: #0f766e; }
.tag-autumn { background: #d96b08; }
.tag-winter { background: #12589c; }

.season-card h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.season-temp {
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--blue);
    font-size: 0.9rem;
}

.season-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text);
}

.season-card li {
    margin-bottom: 6px;
}

.weather-advice {
    padding: 20px 24px;
    margin-bottom: 20px;
}

.weather-advice h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: var(--blue-dark);
}

.advice-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.advice-cols h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.advice-cols p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.related-weather-box {
    padding: 20px 24px;
}

/* Search & About & 404 */
.search-hero {
    padding: 22px 24px;
    margin-bottom: 20px;
}

.search-hero h1 {
    margin: 0 0 14px;
    font-size: 1.3rem;
}

.big-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.big-search-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    font-size: 0.95rem;
}

.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.825rem;
    color: var(--text-muted);
    align-items: center;
}

.hot-search-tags a {
    background: var(--blue-soft);
    padding: 3px 10px;
    border-radius: 99px;
}

.empty-state {
    padding: 34px 24px;
    text-align: center;
    color: var(--text-muted);
}

.about-card {
    padding: 28px 32px;
}

.about-card h1 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    color: var(--blue-dark);
}

.about-card h2 {
    margin: 24px 0 10px;
    font-size: 1.15rem;
    color: var(--blue-dark);
    padding-left: 10px;
    border-left: 4px solid var(--orange);
}

.about-icp {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-weight: 600;
}

.not-found-box {
    padding: 48px 24px;
    text-align: center;
}

.nf-code {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.nf-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: #10253f;
    color: #c8d7e8;
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 28px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-title small {
    font-weight: 400;
    color: #8cb2d9;
    font-size: 0.85rem;
}

.footer-desc {
    margin: 0 0 14px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #b4c7dc;
}

.footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-pills span {
    background: rgba(255, 255, 255, 0.1);
    color: #e6f0fa;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.78rem;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 0.85rem;
}

.footer-links a {
    color: #c8d7e8;
}

.footer-links a:hover {
    color: #ffad5c;
}

.footer-bottom {
    background: #0a192c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.beian-line a {
    color: #ffd099;
    font-weight: 600;
}

/* Responsive Breakpoints (Tablet & 375px Mobile Safe) */
@media (max-width: 1024px) {
    .hero-grid,
    .portal-columns {
        grid-template-columns: 1fr;
    }
    .tool-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .utility-meta {
        display: none;
    }
    .brand-bar-inner {
        gap: 12px;
    }
    .brand-sub {
        display: none;
    }
    .brand-logo img {
        height: 44px;
    }
    .header-search {
        max-width: 100%;
    }
    .tool-cards-grid,
    .channel-grid,
    .listing-grid,
    .listing-grid-2,
    .calc-grid,
    .prompt-grid,
    .division-grid,
    .season-grid,
    .advice-cols,
    .related-grid,
    .prev-next,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .pulse-metrics {
        grid-template-columns: 1fr;
    }
    .feed-card {
        flex-direction: column;
    }
    .feed-thumb,
    .feed-thumb img {
        width: 100%;
        height: 170px;
    }
    .article-detail,
    .about-card,
    .tool-panel,
    .classified-section {
        padding: 16px;
    }
    .article-title {
        font-size: 1.32rem;
    }
    .pn-next {
        text-align: left;
    }
    .big-search-form {
        flex-direction: column;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 12px;
    }
    .nav-list a {
        padding: 10px 11px;
        font-size: 0.875rem;
    }
    .channel-lead {
        flex-direction: column;
    }
    .channel-thumb,
    .channel-thumb img {
        width: 100%;
        height: 145px;
    }
    .hero-lead-title {
        font-size: 1.18rem;
    }
}
