/* ==================== 全新信息详情页面布局样式 ==================== */

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

body.modern-info-page {
   
    background-attachment: fixed;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

.new-layout-wrapper {
    position: relative;
    z-index: 1;
}

/* ==================== 顶部大图展示区域 ==================== */
.hero-image-section {
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image-container:hover .hero-main-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.hero-content {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 16px;
    opacity: 0.95;
}

.hero-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-meta span:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== 主要内容容器 ==================== */
.main-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ==================== 通用卡片样式 ==================== */
.action-bar-card,
.info-details-card,
.description-card,
.images-card,
.related-card,
.notice-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-bar-card:hover,
.info-details-card:hover,
.description-card:hover,
.images-card:hover,
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #2976c2, #1B4671 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    margin: 0;
}

.card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content {
    padding: 30px;
}

/* ==================== 操作按钮栏 ==================== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 30px;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.share-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.top-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.collect-btn {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.edit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.report-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== 信息详情卡片 ==================== */
.info-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.property-item:hover {
    background: #f1f5f9;
    border-left-color: #667eea;
    transform: translateX(5px);
}

.property-item.price-highlight {
    background: linear-gradient(135deg, #fef7f7 0%, #fee2e2 100%);
    border-left-color: #ef4444;
    border-width: 4px;
}

.property-item.price-highlight:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.property-label {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.property-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

.price-highlight .property-value {
    color: #dc2626;
    font-size: 18px;
}

/* ==================== 详细描述卡片 ==================== */
.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.main-description {
    margin-bottom: 30px;
}

.main-description p {
    margin-bottom: 15px;
}

.contact-reminder {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
    color: #1e40af;
    font-size: 15px;
}

.info-ads {
    margin-bottom: 25px;
    text-align: center;
}

.info-ad {
    margin: 10px 0;
}

/* ==================== 图片展示卡片 ==================== */
.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==================== 相关推荐卡片 ==================== */
.related-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-item:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    flex: 1;
}

.related-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.related-content h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h3 a:hover {
    color: #667eea;
}

.related-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.related-date {
    font-size: 12px;
    color: #9ca3af;
}

.view-more-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #fff;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2976c2, #1B4671 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

/* ==================== 温馨提示卡片 ==================== */
.notice-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border: 1px solid #f59e0b;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    color: #92400e;
    font-weight: 500;
}

.notice-content i {
    font-size: 24px;
    color: #d97706;
}

/* ==================== 悬浮联系信息卡片 ==================== */
.floating-contact-card {
    position: fixed;
    top: 80px;
    right: 0px;
    width: 350px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.contact-header {
    background: linear-gradient(135deg, #2976c2, #1B4671 100%);
    color: white;
    padding: 25px;
    border-radius: 25px 25px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.username {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.reg-time {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.verified-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.user-level {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.level-label {
    font-weight: 500;
    color: #6b7280;
}

.vip-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.certification-status {
    margin-top: 15px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.cert-item.verified {
    background: #dcfce7;
    color: #166534;
}

.cert-item.unverified {
    background: #fef2f2;
    color: #991b1b;
}

.contact-methods {
    padding: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: #667eea;
    font-size: 16px;
}

.contact-label {
    font-weight: 500;
    color: #374151;
    min-width: 60px;
}

.contact-value {
    flex: 1;
    color: #1f2937;
    font-weight: 600;
}

.phone-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.phone-item .contact-value {
    font-size: 18px;
    color: #dc2626;
}

.show-phone-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.show-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.safety-notice {
    background: linear-gradient(135deg, #fef7f7 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
    color: #991b1b;
    line-height: 1.5;
}

.expired-notice {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 1px solid #f87171;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: #991b1b;
    font-weight: 500;
}

.sidebar-sections {
    border-top: 1px solid #e2e8f0;
    padding: 25px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-links,
.city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-links a,
.city-links a {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.category-links a:hover,
.city-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.no-data {
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

/* ==================== 图标样式 ==================== */
.icon-share::before { content: "📤"; }
.icon-top::before { content: "⬆️"; }
.icon-heart::before { content: "❤️"; }
.icon-edit::before { content: "✏️"; }
.icon-flag::before { content: "🚩"; }
.icon-trash::before { content: "🗑️"; }
.icon-info::before { content: "ℹ️"; }
.icon-document::before { content: "📄"; }
.icon-photo::before { content: "📷"; }
.icon-star::before { content: "⭐"; }
.icon-warning::before { content: "⚠️"; }
.icon-email::before { content: "📧"; }
.icon-user::before { content: "👤"; }
.icon-phone::before { content: "📞"; }
.icon-shield::before { content: "🛡️"; }
.icon-category::before { content: "📁"; }
.icon-location::before { content: "📍"; }

/* ==================== 响应式设计 ==================== */
@media (max-width: 1400px) {
    .floating-contact-card {
        right: 20px;
        width: 320px;
    }
}

@media (max-width: 1200px) {
    .floating-contact-card {
        position: static;
        width: 100%;
        max-width: 600px;
        margin: 30px auto 0;
        max-height: none;
    }
    
    .main-content-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-overlay {
        padding: 20px;
    }
    
    .action-buttons {
        justify-content: stretch;
        gap: 10px;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .info-properties {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .images-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .related-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-image {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-header {
        padding: 15px 20px;
    }
    
    .floating-contact-card {
        margin: 20px auto 0;
        border-radius: 20px;
    }
    
    .contact-header {
        padding: 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .sidebar-sections {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-content-container {
        padding: 0 15px;
    }
    
    .hero-image-container {
        height: 250px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .images-gallery {
        grid-template-columns: 1fr;
    }
    
    .floating-contact-card {
        width: calc(100% - 30px);
        margin: 15px auto 0;
    }
}

/* ==================== 滚动条样式 ==================== */
.floating-contact-card::-webkit-scrollbar {
    width: 6px;
}

.floating-contact-card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.floating-contact-card::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 3px;
}

.floating-contact-card::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-bar-card,
.info-details-card,
.description-card,
.images-card,
.related-card,
.notice-card {
    animation: fadeInUp 0.6s ease forwards;
}

.info-details-card {
    animation-delay: 0.1s;
}

.description-card {
    animation-delay: 0.2s;
}

.images-card {
    animation-delay: 0.3s;
}

.related-card {
    animation-delay: 0.4s;
}

.notice-card {
    animation-delay: 0.5s;
}

/* ==================== 清除浮动 ==================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clear {
    clear: both;
}
