/* ============================================================
   02office 楼宇系统 v2 - 基础样式
   现代 · 简洁 · 大气
   ============================================================ */

:root {
    --o2b-primary: #0b2d5c;
    --o2b-primary-light: #1a4d8f;
    --o2b-accent: #2563eb;
    --o2b-text: #111827;
    --o2b-text-2: #4b5563;
    --o2b-text-3: #9ca3af;
    --o2b-bg: #fff;
    --o2b-bg-soft: #f8fafc;
    --o2b-border: #e5e7eb;
    --o2b-radius: 12px;
    --o2b-radius-lg: 20px;
    --o2b-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    --o2b-shadow-hover: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.10);
    --o2b-max: 1240px;
}

.o2b-container { max-width: var(--o2b-max); margin: 0 auto; padding: 0 24px; }

/* Astra 容器修正 */
.site-content > .ast-container,
.ast-container { max-width: 100% !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.ast-separate-container .site-content > .ast-container { background: transparent; }
.entry-header, .ast-article-single .entry-header { display: none; }
.ast-separate-container .ast-article-single { padding: 0; background: transparent; border: none; }

/* 页头强制深色 */
.site-header, #masthead, .ast-primary-header-bar, .main-header-bar { background-color: #0b2d5c !important; }
.site-header .site-title a, .site-header .site-title,
.site-header .main-header-menu > li > a,
.site-header .ast-builder-menu .menu-item > a { color: rgba(255,255,255,.92) !important; }
.site-header .main-header-menu > li > a:hover,
.site-header .ast-builder-menu .menu-item > a:hover { color: #fff !important; }
.site-header .menu-toggle, .site-header .ast-mobile-menu-trigger { color: #fff !important; }

/* 页脚 */
.site-footer, #colophon, .site-below-footer-wrap, .ast-small-footer,
.site-above-footer-wrap, .site-primary-footer-wrap {
    background-color: #fff !important; background-image: none !important;
}
.site-below-footer-wrap { padding: 0 !important; border-top: 1px solid #e5e7eb; }
.site-below-footer-inner-wrap { padding: 22px 0 !important; }
.site-above-footer-wrap, .site-primary-footer-wrap { display: none !important; }
.ast-footer-copyright, .ast-footer-copyright p {
    font-size: 13.5px !important; color: #9ca3af !important; text-align: center; margin: 0 !important;
}
.ast-footer-copyright a[href*="wpastra.com"],
.ast-footer-copyright a[href*="wordpress.org"] { display: none !important; }

body, .site, #page, #content, .site-content { background-color: #fff; }

/* ---------------- 通用标题 ---------------- */
.o2b-section { padding: 88px 0; background: #fff; }
.o2b-section.o2b-types { background: var(--o2b-bg-soft); }
.o2b-section.o2b-stats { background: var(--o2b-primary); }
.o2b-section.o2b-cta { background: var(--o2b-bg-soft); }
.o2b-section-inner { padding: 56px 0 0; }

.o2b-section__head { margin-bottom: 44px; position: relative; }
.o2b-section__head h2 {
    font-size: 34px; line-height: 1.25; font-weight: 700;
    color: #111827 !important; margin: 0 0 10px; letter-spacing: -0.02em;
}
.o2b-section__head p { font-size: 16px; color: #6b7280 !important; margin: 0; }
.o2b-section__more {
    position: absolute; right: 0; bottom: 4px; font-size: 15px;
    color: var(--o2b-accent); text-decoration: none; font-weight: 500;
}
.o2b-section__more:hover { text-decoration: underline; }

/* ---------------- Hero ---------------- */
.o2b-hero {
    background: linear-gradient(135deg, #0b2d5c 0%, #123a70 45%, #1a4d8f 100%);
    padding: 120px 0 110px; position: relative; overflow: hidden; margin-top: 0 !important;
}
.o2b-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.08) 0%, transparent 45%),
                radial-gradient(circle at 80% 75%, rgba(37,99,235,.25) 0%, transparent 50%);
}
.o2b-hero .o2b-container { position: relative; z-index: 1; }
.o2b-hero__title {
    font-size: 52px; line-height: 1.15; font-weight: 800;
    color: #fff !important; margin: 0 0 20px; letter-spacing: -0.03em; max-width: 760px;
}
.o2b-hero__sub { font-size: 19px; color: rgba(255,255,255,.78) !important; margin: 0 0 44px; max-width: 620px; line-height: 1.65; }
.o2b-hero__search {
    display: flex; max-width: 620px; background: #fff;
    border-radius: 999px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.o2b-hero__search input[type="search"] {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 14px 22px !important; font-size: 16px; color: var(--o2b-text); margin: 0 !important; width: auto !important;
}
.o2b-hero__search button {
    border: none; background: var(--o2b-accent); color: #fff; font-size: 15px; font-weight: 600;
    padding: 14px 34px; border-radius: 999px; cursor: pointer; transition: all .2s; white-space: nowrap; width: auto !important;
}
.o2b-hero__search button:hover { background: #1d4ed8; transform: translateY(-1px); }

/* ---------------- 分类九宫格 ---------------- */
.o2b-types__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.o2b-type-card {
    display: flex; align-items: center; gap: 16px; padding: 26px 24px;
    background: #fff; border: 1px solid var(--o2b-border);
    border-radius: var(--o2b-radius); text-decoration: none; transition: all .22s ease;
}
.o2b-type-card:hover { border-color: var(--o2b-accent); box-shadow: var(--o2b-shadow-hover); transform: translateY(-3px); }
.o2b-type-card__icon {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--o2b-accent);
    display: flex; align-items: center; justify-content: center; transition: all .22s;
}
.o2b-type-card:hover .o2b-type-card__icon { background: var(--o2b-accent); color: #fff; }
.o2b-type-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.o2b-type-card__body strong {
    font-size: 16px; font-weight: 600; color: #111827 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.o2b-type-card__body small { font-size: 13px; color: #6b7280 !important; }

/* ---------------- 楼盘卡片 ---------------- */
.o2b-buildings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.o2b-buildings__grid--archive { margin-bottom: 48px; }

.o2b-card {
    background: #fff; border: 1px solid var(--o2b-border);
    border-radius: var(--o2b-radius-lg); overflow: hidden;
    transition: all .25s ease; display: flex; flex-direction: column;
}
.o2b-card:hover { box-shadow: var(--o2b-shadow-hover); transform: translateY(-4px); border-color: transparent; }
.o2b-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; position: relative; background: #f1f5f9; }
.o2b-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.o2b-card:hover .o2b-card__media img { transform: scale(1.06); }

.o2b-card__placeholder { display: block; width: 100%; height: 100%; }
.o2b-card__placeholder::after {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='.8'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 9h1M9 13h1M9 17h1M14 9h1M14 13h1M14 17h1'/%3E%3C/svg%3E") no-repeat center / 64px;
}
.o2b-card__placeholder--0 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.o2b-card__placeholder--1 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.o2b-card__placeholder--2 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.o2b-card__placeholder--3 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.o2b-card__placeholder--4 { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }

.o2b-card__badge {
    position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px); color: var(--o2b-primary);
    font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.o2b-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.o2b-card__title { font-size: 19px; font-weight: 650; line-height: 1.4; margin: 0; letter-spacing: -0.01em; }
.o2b-card__title a { color: #111827 !important; text-decoration: none; }
.o2b-card__title a:hover { color: var(--o2b-accent) !important; }
.o2b-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #6b7280 !important; margin: 0; }
.o2b-card__foot {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--o2b-border);
}
.o2b-card__price { font-size: 13px; color: var(--o2b-text-3); }
.o2b-card__price em { font-style: normal; font-size: 20px; font-weight: 700; color: #dc2626; margin-right: 3px; }
.o2b-card__units { font-size: 13px; color: var(--o2b-text-2); background: var(--o2b-bg-soft); padding: 4px 10px; border-radius: 6px; }

/* ---------------- 统计 ---------------- */
.o2b-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.o2b-stat strong {
    display: block; font-size: 42px; font-weight: 800;
    color: #fff !important; line-height: 1.1; letter-spacing: -0.03em;
}
.o2b-stat strong span { font-size: 18px; font-weight: 600; margin-left: 2px; }
.o2b-stat > span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.65) !important; }

/* ---------------- CTA ---------------- */
.o2b-cta__box {
    background: linear-gradient(135deg, #0b2d5c, #1a4d8f);
    border-radius: var(--o2b-radius-lg); padding: 72px 56px;
    text-align: center; position: relative; overflow: hidden;
}
.o2b-cta__box::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 85% 20%, rgba(37,99,235,.35), transparent 55%);
}
.o2b-cta__box h2 {
    position: relative; font-size: 36px; font-weight: 700;
    color: #fff !important; margin: 0 0 14px; letter-spacing: -0.02em;
}
.o2b-cta__box p { position: relative; font-size: 17px; color: rgba(255,255,255,.78) !important; margin: 0 0 36px; }

/* ---------------- 按钮 ---------------- */
.o2b-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: all .2s; white-space: nowrap;
    width: auto !important;
}
.o2b-btn--primary { background: var(--o2b-accent); color: #fff !important; }
.o2b-btn--primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.o2b-btn--light { background: #fff; color: var(--o2b-primary) !important; }
.o2b-btn--light:hover { background: #f1f5f9; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.o2b-btn--ghost {
    background: rgba(255,255,255,.12); color: #fff !important;
    border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px);
}
.o2b-btn--ghost:hover { background: rgba(255,255,255,.22); }
.o2b-btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; background: var(--o2b-bg-soft); color: var(--o2b-text-2) !important; }
.o2b-btn--sm:hover { background: var(--o2b-accent); color: #fff !important; }
.o2b-btn--block { width: 100% !important; }

/* ---------------- 面包屑 ---------------- */
.o2b-crumb { font-size: 13.5px; color: var(--o2b-text-3); margin-bottom: 14px; }
.o2b-crumb a { color: var(--o2b-text-2); text-decoration: none; }
.o2b-crumb a:hover { color: var(--o2b-accent); }
.o2b-crumb span { margin: 0 6px; color: #d1d5db; }

/* ---------------- 标签 ---------------- */
.o2b-tag {
    display: inline-block; padding: 5px 13px; border-radius: 999px;
    font-size: 12.5px; font-weight: 500; text-decoration: none; transition: all .2s;
}
.o2b-tag--light { background: #eff6ff; color: var(--o2b-accent) !important; border: 1px solid #dbeafe; }
.o2b-tag--light:hover { background: var(--o2b-accent); color: #fff !important; }
.o2b-tag--accent { background: #dc2626; color: #fff !important; }

/* ---------------- 面板 ---------------- */
.o2b-panel {
    background: #fff; border: 1px solid var(--o2b-border);
    border-radius: var(--o2b-radius-lg); padding: 32px 36px; margin-bottom: 24px;
}
.o2b-panel__title {
    font-size: 21px; font-weight: 700; color: #111827 !important;
    margin: 0 0 22px; padding-bottom: 16px;
    border-bottom: 1px solid var(--o2b-border);
    display: flex; justify-content: space-between; align-items: center; letter-spacing: -0.01em;
}
.o2b-panel__count { font-size: 13.5px; font-weight: 500; color: var(--o2b-text-3); background: var(--o2b-bg-soft); padding: 5px 12px; border-radius: 6px; }
.o2b-panel--cta { background: linear-gradient(135deg, #0b2d5c, #1a4d8f); border: none; }
.o2b-panel--cta .o2b-panel__title { color: #fff !important; border-color: rgba(255,255,255,.2); }
.o2b-panel--cta p { color: rgba(255,255,255,.78) !important; }

/* ---------------- 富文本 ---------------- */
.o2b-prose { font-size: 15.5px; line-height: 1.85; color: var(--o2b-text-2); }
.o2b-prose p { margin: 0 0 1.1em; }
.o2b-prose h2, .o2b-prose h3 { color: var(--o2b-text); margin: 1.5em 0 .6em; }
.o2b-prose img { max-width: 100%; height: auto; border-radius: var(--o2b-radius); }
.o2b-prose a { color: var(--o2b-accent); }

.o2b-muted { color: var(--o2b-text-3); font-size: 14.5px; }
