/* 房地产文章组件 - 专业的房地产行业样式系统 */

/* ===== 基础变量定义 ===== */
:root {
    --realestate-primary: #E53E3E;
    --realestate-primary-dark: #C53030;
    --realestate-text-primary: #2D3748;
    --realestate-text-secondary: #4A5568;
    --realestate-text-muted: #718096;
    --realestate-bg-light: #fafafa;
    --realestate-shadow-light: rgba(229, 62, 62, 0.1);
    --realestate-shadow-medium: rgba(229, 62, 62, 0.15);
    --realestate-shadow-strong: rgba(229, 62, 62, 0.2);
    --realestate-border-light: rgba(229, 62, 62, 0.12);
    --realestate-border-medium: rgba(229, 62, 62, 0.2);
    --realestate-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --realestate-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --realestate-radius: 12px;
    --realestate-radius-large: 16px;
}

/* ===== 动画效果优化 ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px var(--realestate-shadow-light);
    }
    50% {
        text-shadow: 0 0 15px var(--realestate-shadow-medium);
    }
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* 针对用户偏好的动画控制 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 房地产导读组件 ===== */
.realestate-guide-wrapper {
    color: var(--realestate-text-primary);
    font-family: var(--realestate-font-family);
    font-size: 15px;
    border-radius: var(--realestate-radius-large);
    background: linear-gradient(135deg, #ffffff 0%, var(--realestate-bg-light) 100%);
    border: 1px solid var(--realestate-border-light);
    box-shadow: 0 6px 30px var(--realestate-shadow-light);
    overflow: hidden;
    padding: 0;
    margin: 28px 0;
    position: relative;
    transition: var(--realestate-transition);
    user-select: text;
    will-change: transform, box-shadow;
}

.realestate-guide-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--realestate-shadow-medium);
    border-color: var(--realestate-border-medium);
}

.realestate-guide-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 50%, var(--realestate-primary) 100%);
}

.realestate-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, var(--realestate-shadow-light) 0%, rgba(229, 62, 62, 0.05) 100%);
    border-bottom: 1px solid var(--realestate-border-light);
    position: relative;
}

.realestate-guide-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--realestate-primary) 0%, transparent 100%);
}

.realestate-guide-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.realestate-guide-icon {
    width: 24px;
    height: 24px;
    background: var(--realestate-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    position: relative;
}

.realestate-guide-icon::before {
    content: '▶';
    font-size: 10px;
    color: #ffffff;
    font-weight: bold;
}

.realestate-guide-title {
    color: var(--realestate-primary);
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.realestate-guide-badge {
    background: linear-gradient(135deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}



.realestate-guide-content {
    line-height: 1.8;
    font-size: 16px;
    padding: 10px 32px;
    position: relative;
}

.realestate-guide-paragraph {
    margin: 0;
    color: var(--realestate-text-secondary);
    transition: color 0.2s ease;
    position: relative;
    padding: 5px 0;
}

.realestate-guide-paragraph:hover {
    color: var(--realestate-text-primary);
    transform: translateX(2px);
}

.realestate-guide-footer {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(229, 62, 62, 0.3) 50%, transparent 100%);
    margin: 0 32px 24px;
}

/* 导读和FAQ组件内的所有元素特殊样式 - 使用最高优先级覆盖 */
section .realestate-guide-wrapper *,
section .realestate-faq-container *,
.realestate-guide-wrapper *,
.realestate-faq-container * {
    animation: none !important;
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    transition-delay: 0s !important;
}

/* 使用多重选择器提高优先级 */
section .realestate-guide-wrapper p,
section .realestate-faq-container p,
.realestate-guide-wrapper p,
.realestate-faq-container p,
div.realestate-guide-wrapper p,
div.realestate-faq-container p {
    color: var(--realestate-text-secondary) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease !important;
    text-align: left !important;
    font-weight: normal !important;
    text-decoration: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    clip: unset !important;
    position: static !important;
}

section .realestate-guide-wrapper p:hover,
section .realestate-faq-container p:hover,
.realestate-guide-wrapper p:hover,
.realestate-faq-container p:hover,
div.realestate-guide-wrapper p:hover,
div.realestate-faq-container p:hover {
    color: var(--realestate-text-primary) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transform: none !important;
    border-radius: 0 !important;
    padding: 5px 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: normal !important;
}

section .realestate-guide-wrapper h2,
section .realestate-guide-wrapper h3,
section .realestate-faq-container h2,
section .realestate-faq-container h3,
.realestate-guide-wrapper h2,
.realestate-guide-wrapper h3,
.realestate-faq-container h2,
.realestate-faq-container h3,
div.realestate-guide-wrapper h2,
div.realestate-guide-wrapper h3,
div.realestate-faq-container h2,
div.realestate-faq-container h3 {
    animation: none !important;
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

section .realestate-guide-wrapper h2::before,
section .realestate-guide-wrapper h2::after,
section .realestate-guide-wrapper h3::before,
section .realestate-guide-wrapper h3::after,
section .realestate-faq-container h2::before,
section .realestate-faq-container h2::after,
section .realestate-faq-container h3::before,
section .realestate-faq-container h3::after,
.realestate-guide-wrapper h2::before,
.realestate-guide-wrapper h2::after,
.realestate-guide-wrapper h3::before,
.realestate-guide-wrapper h3::after,
.realestate-faq-container h2::before,
.realestate-faq-container h2::after,
.realestate-faq-container h3::before,
.realestate-faq-container h3::after,
div.realestate-guide-wrapper h2::before,
div.realestate-guide-wrapper h2::after,
div.realestate-guide-wrapper h3::before,
div.realestate-guide-wrapper h3::after,
div.realestate-faq-container h2::before,
div.realestate-faq-container h2::after,
div.realestate-faq-container h3::before,
div.realestate-faq-container h3::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* ===== 房地产FAQ组件 ===== */
.realestate-faq-container {
    color: var(--realestate-text-primary);
    font-family: var(--realestate-font-family);
    font-size: 15px;
    margin: 28px 0;
}

.realestate-faq-header {
    border-radius: var(--realestate-radius-large);
    background: linear-gradient(135deg, #ffffff 0%, var(--realestate-bg-light) 100%);
    border: 1px solid var(--realestate-border-light);
    box-shadow: 0 6px 30px var(--realestate-shadow-light);
    overflow: hidden;
    padding: 0;
    margin-bottom: 28px;
    position: relative;
    transition: var(--realestate-transition);
}

.realestate-faq-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--realestate-shadow-medium);
}

.realestate-faq-header-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 50%, var(--realestate-primary) 100%);
}

.realestate-faq-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--realestate-shadow-light) 0%, rgba(229, 62, 62, 0.05) 100%);
}

.realestate-faq-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.realestate-faq-header-icon {
    width: 24px;
    height: 24px;
    background: var(--realestate-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.realestate-faq-header-icon::before {
    content: '?';
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
}

.realestate-faq-header-title {
    color: var(--realestate-primary);
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.realestate-faq-header-badge {
    background: linear-gradient(135deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}



/* FAQ问答项 */
.realestate-faq-item {
    border-radius: var(--realestate-radius-large);
    background: linear-gradient(135deg, #ffffff 0%, var(--realestate-bg-light) 100%);
    border: 1px solid var(--realestate-border-light);
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.06);
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: var(--realestate-transition);
    will-change: transform, box-shadow;
}

.realestate-faq-item:not(:last-child) {
    margin-bottom: 24px;
}

.realestate-faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px var(--realestate-shadow-medium);
    border-color: var(--realestate-border-medium);
}

.realestate-faq-question-section {
    display: flex;
    align-items: flex-start;
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, var(--realestate-shadow-light) 0%, rgba(229, 62, 62, 0.03) 100%);
    border-bottom: 1px solid rgba(229, 62, 62, 0.08);
    position: relative;
}

.realestate-faq-question-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--realestate-primary) 0%, transparent 100%);
}

.realestate-faq-q-badge {
    background: linear-gradient(135deg, var(--realestate-text-primary) 0%, #1A202C 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(45, 55, 72, 0.3);
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.realestate-faq-question-text {
    margin: 0;
    padding: 0;
    font-size: 17px;
    color: var(--realestate-text-primary);
    font-weight: 700;
    line-height: 1.6;
    flex: 1;
}

.realestate-faq-answer-section {
    display: flex;
    align-items: flex-start;
    padding: 28px 32px 32px;
    position: relative;
}

.realestate-faq-a-badge {
    background: linear-gradient(135deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(229, 62, 62, 0.4);
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.realestate-faq-answer-content {
    flex: 1;
}

.realestate-faq-answer-text {
    margin: 0;
    line-height: 1.8;
    color: var(--realestate-text-secondary);
    font-size: 16px;
}

/* ===== 房地产文章基础样式 ===== */

/* H2 标题样式 */
section h2 {
    color: var(--realestate-primary);
    font-family: var(--realestate-font-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 40px 0 24px 0;
    padding: 0 0 16px 0;
    border-bottom: 3px solid var(--realestate-shadow-medium);
    position: relative;
    letter-spacing: 0.5px;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    animation: slideInLeft 0.8s ease-out forwards;
    transition: color 0.3s ease;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 100%);
    border-radius: 2px;
}

section h2:first-child {
    margin-top: 0;
}

section h2:hover {
    color: var(--realestate-primary-dark);
}

/* P 段落样式 */
section p {
    color: var(--realestate-text-secondary);
    font-family: var(--realestate-font-family);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px 0;
    text-align: justify;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    transition: var(--realestate-transition);
    padding: 5px 0;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

section p:last-child {
    margin-bottom: 0;
}

section p:hover {
    color: var(--realestate-text-primary);
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.01) 0%, rgba(229, 62, 62, 0.02) 100%);
    border-radius: 4px;
}

/* UL 列表样式 */
section ul {
    color: var(--realestate-text-secondary);
    font-family: var(--realestate-font-family);
    font-size: 16px;
    line-height: 1.7;
    margin: 24px 0;
    padding: 24px;
    list-style: none;
    background: linear-gradient(135deg, var(--realestate-shadow-light) 0%, rgba(229, 62, 62, 0.04) 100%);
    border-radius: var(--realestate-radius);
    border-left: 4px solid var(--realestate-primary);
    box-shadow: 0 2px 12px var(--realestate-shadow-light);
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
    transition: var(--realestate-transition);
}

/* LI 列表项样式 */
section li {
    position: relative;
    margin: 0 0 16px 0;
    padding: 0 0 0 28px;
    transition: var(--realestate-transition);
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

section li:last-child {
    margin-bottom: 0;
}

section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--realestate-primary);
    font-size: 12px;
    font-weight: bold;
    transition: var(--realestate-transition);
    animation: pulseScale 2s ease-in-out infinite;
}

section li:hover {
    color: var(--realestate-text-primary);
    padding-left: 32px;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.01) 0%, rgba(229, 62, 62, 0.02) 100%);
    border-radius: 4px;
}

section li:hover::before {
    color: var(--realestate-primary-dark);
    transform: rotate(90deg);
    animation: textGlow 1s ease-in-out infinite;
}

/* 为段落和列表项添加交错动画延迟 */
section p:nth-child(1) { animation-delay: 0.1s; }
section p:nth-child(2) { animation-delay: 0.2s; }
section p:nth-child(3) { animation-delay: 0.3s; }
section p:nth-child(4) { animation-delay: 0.4s; }
section p:nth-child(5) { animation-delay: 0.5s; }
section p:nth-child(6) { animation-delay: 0.6s; }
section p:nth-child(7) { animation-delay: 0.7s; }
section p:nth-child(8) { animation-delay: 0.8s; }

section li:nth-child(1) { animation-delay: 0.2s; }
section li:nth-child(2) { animation-delay: 0.3s; }
section li:nth-child(3) { animation-delay: 0.4s; }
section li:nth-child(4) { animation-delay: 0.5s; }
section li:nth-child(5) { animation-delay: 0.6s; }
section li:nth-child(6) { animation-delay: 0.7s; }

section h2:nth-of-type(1) { animation-delay: 0.1s; }
section h2:nth-of-type(2) { animation-delay: 0.5s; }
section h2:nth-of-type(3) { animation-delay: 0.9s; }
section h2:nth-of-type(4) { animation-delay: 1.3s; }

/* ===== Section内其他元素样式优化 ===== */

/* 文本加粗样式 */
section strong,
section b {
    color: var(--realestate-primary);
    font-weight: 700;
    text-shadow: 0 1px 2px var(--realestate-shadow-light);
    transition: var(--realestate-transition);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

section strong:hover,
section b:hover {
    color: var(--realestate-primary-dark);
    text-shadow: 0 2px 4px var(--realestate-shadow-strong);
}

/* a标签链接样式 */
section a {
    color: var(--realestate-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--realestate-transition);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 100%);
    transition: width 0.3s ease;
}

section a:hover {
    color: var(--realestate-primary-dark);
}

section a:hover::after {
    width: 100%;
}

/* 外部链接图标 */
section a[href^="http"]::before,
section a[href^="https://"]::before {
    /*content: '🔗';*/
    font-size: 12px;
    margin-right: 4px;
    opacity: 0.7;
}

/* 图片样式 */
section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--realestate-radius);
    box-shadow: 0 6px 30px var(--realestate-shadow-light);
    transition: var(--realestate-transition);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    border: 1px solid var(--realestate-border-light);
    will-change: transform, box-shadow;
}

section img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--realestate-shadow-strong);
    border-color: var(--realestate-border-medium);
}

/* 图片容器样式 */
section figure {
    margin: 24px 0;
    padding: 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

section figcaption {
    color: var(--realestate-text-muted);
    font-size: 14px;
    margin-top: 12px;
    font-style: italic;
    padding: 0 16px;
}

/* 代码样式 */
section code {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.05) 0%, rgba(229, 62, 62, 0.08) 100%);
    color: var(--realestate-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--realestate-border-light);
    transition: var(--realestate-transition);
}

section code:hover {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.08) 0%, rgba(229, 62, 62, 0.12) 100%);
    border-color: var(--realestate-border-medium);
}

/* 引用块样式 */
section blockquote {
    margin: 24px 0;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--realestate-shadow-light) 0%, rgba(229, 62, 62, 0.05) 100%);
    border-left: 4px solid var(--realestate-primary);
    border-radius: 0 var(--realestate-radius) var(--realestate-radius) 0;
    box-shadow: 0 4px 20px var(--realestate-shadow-light);
    font-style: italic;
    position: relative;
    animation: slideInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

section blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: -10px;
    font-size: 48px;
    color: var(--realestate-primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

section blockquote p {
    margin: 0;
    color: var(--realestate-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* 表格样式 */
section table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #ffffff;
    border-radius: var(--realestate-radius);
    overflow: hidden;
    box-shadow: 0 6px 30px var(--realestate-shadow-light);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

section table th {
    background: linear-gradient(135deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 100%);
    color: #ffffff;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

section table td {
    padding: 16px;
    border-bottom: 1px solid var(--realestate-border-light);
    color: var(--realestate-text-secondary);
    font-size: 15px;
    transition: background-color 0.3s ease;
}

section table tr:hover td {
    background: linear-gradient(135deg, var(--realestate-shadow-light) 0%, rgba(229, 62, 62, 0.05) 100%);
}

section table tr:last-child td {
    border-bottom: none;
}

/* ===== 特殊内容区域样式 ===== */

/* 房地产信息卡片样式 */
.realestate-info-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--realestate-bg-light) 100%);
    border: 1px solid var(--realestate-border-medium);
    border-radius: var(--realestate-radius-large);
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 6px 30px var(--realestate-shadow-light);
    position: relative;
    transition: var(--realestate-transition);
    will-change: transform, box-shadow;
}

.realestate-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--realestate-primary) 0%, var(--realestate-primary-dark) 100%);
    border-radius: var(--realestate-radius-large) var(--realestate-radius-large) 0 0;
}

.realestate-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--realestate-shadow-medium);
}

.realestate-info-card h2 {
    color: var(--realestate-primary);
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

.realestate-info-card h2::before,
.realestate-info-card h2::after {
    display: none;
}

.realestate-info-card p {
    color: var(--realestate-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 5px 0;
}

.realestate-info-card p:last-child {
    margin-bottom: 0;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    :root {
        --realestate-radius: 8px;
        --realestate-radius-large: 12px;
    }
    
    .realestate-guide-wrapper,
    .realestate-faq-header,
    .realestate-faq-item {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .realestate-guide-header,
    .realestate-faq-header-content,
    .realestate-faq-question-section,
    .realestate-faq-answer-section {
        padding: 24px 20px;
    }
    
    .realestate-guide-content {
        padding: 24px 20px 28px;
    }
    
    .realestate-guide-title,
    .realestate-faq-header-title {
        font-size: 16px;
    }
    
    .realestate-faq-question-text {
        font-size: 16px;
    }
    
    .realestate-faq-answer-text {
        font-size: 15px;
    }
    
    .realestate-guide-paragraph {
        margin-bottom: 16px;
        font-size: 15px;
    }
    
    .realestate-faq-q-badge,
    .realestate-faq-a-badge {
        margin-right: 16px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    section h2 {
        font-size: 20px;
        margin: 32px 0 20px 0;
    }
    
    section p {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    section ul {
        font-size: 15px;
        padding: 20px;
        margin: 20px 0;
    }
    
    section li {
        padding-left: 24px;
        margin-bottom: 14px;
    }
    
    .realestate-info-card {
        padding: 24px;
        margin: 24px 16px;
    }
    
    /* 移动端优化 - 其他元素 */
    section strong,
    section b {
        font-size: 15px;
    }
    
    section a {
        font-size: 15px;
    }
    
    section img {
        margin: 16px 0;
    }
    
    section code {
        font-size: 13px;
        padding: 1px 6px;
    }
    
    section blockquote {
        padding: 20px 24px;
        margin: 20px 0;
    }
    
    section blockquote::before {
        font-size: 36px;
        top: 8px;
        left: -8px;
    }
    
    section table {
        font-size: 14px;
        margin: 20px 0;
    }
    
    section table th,
    section table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    section h2 {
        font-size: 22px;
    }
    
    section p {
        font-size: 15px;
    }
    
    .realestate-guide-wrapper,
    .realestate-faq-header,
    .realestate-faq-item {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* ===== 文字选择和可访问性优化 ===== */
* {
    user-select: text;
}

/* 改善文字可读性 */
.realestate-guide-paragraph,
.realestate-faq-question-text,
.realestate-faq-answer-text,
section p,
section li {
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 聚焦和选择状态优化 */
.realestate-guide-wrapper:focus-within,
.realestate-faq-item:focus-within,
.realestate-info-card:focus-within {
    outline: 2px solid var(--realestate-shadow-strong);
    outline-offset: 2px;
}

/* 键盘导航支持 */
a:focus,
button:focus {
    outline: 2px solid var(--realestate-primary);
    outline-offset: 2px;
}

/* 打印样式优化 */
@media print {
    .realestate-guide-wrapper,
    .realestate-faq-header,
    .realestate-faq-item,
    .realestate-info-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .realestate-guide-top-accent,
    .realestate-faq-header-accent {
        background: var(--realestate-primary);
    }
    
    section {
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ===== 精准的Badge保护 - 只修复必要的元素 ===== */

/* 只保护Badge内的p标签，不影响其他元素 */
html body section .realestate-faq-header-badge p,
html body section .realestate-guide-badge p,
html body .realestate-faq-header-badge p,
html body .realestate-guide-badge p,
section .realestate-faq-header-badge p,
section .realestate-guide-badge p,
.realestate-faq-header-badge p,
.realestate-guide-badge p {
    all: unset !important;
    display: inline !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    animation: none !important;
    transform: none !important;
    line-height: normal !important;
    font-family: var(--realestate-font-family) !important;
} 