/**
 * Multi-purpose Theme Main Styles
 * 
 * @package Mpurpose
 * Version: 1.0.0
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Colors */
    --mp-primary: #2563eb;
    --mp-primary-dark: #1d4ed8;
    --mp-secondary: #64748b;
    --mp-success: #22c55e;
    --mp-warning: #f59e0b;
    --mp-danger: #ef4444;
    --mp-bg: #ffffff;
    --mp-bg-secondary: #f8fafc;
    --mp-text: #1e293b;
    --mp-text-light: #64748b;
    --mp-border: #e2e8f0;
    
    /* Spacing */
    --mp-xs: 4px;
    --mp-sm: 8px;
    --mp-md: 16px;
    --mp-lg: 24px;
    --mp-xl: 32px;
    --mp-2xl: 48px;
    
    /* Border Radius */
    --mp-radius: 8px;
    --mp-radius-sm: 4px;
    --mp-radius-lg: 12px;
    
    /* Shadows */
    --mp-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --mp-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --mp-shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Transitions */
    --mp-transition: all 0.3s ease;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mp-text);
    background: var(--mp-bg);
}

a {
    color: var(--mp-primary);
    text-decoration: none;
    transition: var(--mp-transition);
}

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

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

ul, ol {
    list-style: none;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: var(--mp-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--mp-md);
}

/* ==================== Layout ==================== */
.mp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--mp-md);
}

.mp-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--mp-md) * -1);
}

.mp-col {
    padding: 0 var(--mp-md);
}

.mp-col-3 { flex: 0 0 25%; }
.mp-col-4 { flex: 0 0 33.333%; }
.mp-col-6 { flex: 0 0 50%; }
.mp-col-8 { flex: 0 0 66.666%; }
.mp-col-12 { flex: 0 0 100%; }

@media (max-width: 768px) {
    .mp-col-3, .mp-col-4, .mp-col-6, .mp-col-8 {
        flex: 0 0 100%;
    }
}

/* ==================== Header ==================== */
.mp-header {
    background: var(--mp-bg);
    border-bottom: 1px solid var(--mp-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--mp-transition);
}

.mp-header.mp-sticky {
    box-shadow: var(--mp-shadow);
}

.mp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--mp-md) 0;
}

.mp-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-primary);
}

.mp-logo img {
    max-height: 40px;
}

.mp-nav-menu {
    display: flex;
    gap: var(--mp-lg);
}

.mp-nav-menu a {
    color: var(--mp-text);
    font-weight: 500;
}

.mp-nav-menu a:hover {
    color: var(--mp-primary);
}

.mp-header-actions {
    display: flex;
    align-items: center;
    gap: var(--mp-md);
}

/* ==================== Buttons ==================== */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--mp-sm) var(--mp-md);
    border: none;
    border-radius: var(--mp-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--mp-transition);
    
    background: var(--mp-primary);
    color: white;
}

.mp-btn:hover {
    background: var(--mp-primary-dark);
    color: white;
}

.mp-btn-secondary {
    background: var(--mp-secondary);
}

.mp-btn-outline {
    background: transparent;
    border: 1px solid var(--mp-border);
    color: var(--mp-text);
}

.mp-btn-outline:hover {
    border-color: var(--mp-primary);
    color: var(--mp-primary);
}

.mp-btn-sm {
    padding: var(--mp-xs) var(--mp-sm);
    font-size: 0.875rem;
}

.mp-btn-lg {
    padding: var(--mp-md) var(--mp-lg);
    font-size: 1.125rem;
}

/* ==================== Cards ==================== */
.mp-card {
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    transition: var(--mp-transition);
}

.mp-card:hover {
    box-shadow: var(--mp-shadow-md);
    transform: translateY(-2px);
}

.mp-card-image {
    position: relative;
    overflow: hidden;
}

.mp-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mp-card-badge {
    position: absolute;
    top: var(--mp-sm);
    left: var(--mp-sm);
    padding: var(--mp-xs) var(--mp-sm);
    background: var(--mp-primary);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--mp-radius-sm);
}

.mp-card-body {
    padding: var(--mp-md);
}

.mp-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--mp-sm);
}

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

.mp-card-title a:hover {
    color: var(--mp-primary);
}

.mp-card-meta {
    display: flex;
    gap: var(--mp-md);
    color: var(--mp-text-light);
    font-size: 0.875rem;
    margin-bottom: var(--mp-sm);
}

.mp-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp-danger);
}

/* ==================== Forms ==================== */
.mp-form-group {
    margin-bottom: var(--mp-md);
}

.mp-form-group label {
    display: block;
    margin-bottom: var(--mp-xs);
    font-weight: 500;
}

.mp-form-group input,
.mp-form-group select,
.mp-form-group textarea {
    width: 100%;
    padding: var(--mp-sm) var(--mp-md);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    font-size: 1rem;
    transition: var(--mp-transition);
}

.mp-form-group input:focus,
.mp-form-group select:focus,
.mp-form-group textarea:focus {
    outline: none;
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mp-form-message {
    margin-top: var(--mp-sm);
    padding: var(--mp-sm);
    border-radius: var(--mp-radius-sm);
}

.mp-form-message.error {
    background: #fef2f2;
    color: var(--mp-danger);
}

.mp-form-message.success {
    background: #f0fdf4;
    color: var(--mp-success);
}

/* ==================== Grid Layouts ==================== */
.mp-listings-grid,
.mp-properties-grid,
.mp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--mp-lg);
}

/* ==================== Pagination ==================== */
.mp-pagination {
    display: flex;
    justify-content: center;
    gap: var(--mp-xs);
    margin: var(--mp-xl) 0;
}

.mp-pagination a,
.mp-pagination span {
    padding: var(--mp-sm) var(--mp-md);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    color: var(--mp-text);
}

.mp-pagination .current {
    background: var(--mp-primary);
    border-color: var(--mp-primary);
    color: white;
}

/* ==================== User Dashboard ==================== */
.mp-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--mp-lg);
}

.mp-dashboard-sidebar {
    background: var(--mp-bg-secondary);
    border-radius: var(--mp-radius-lg);
    padding: var(--mp-lg);
}

.mp-dashboard-sidebar ul {
    list-style: none;
}

.mp-dashboard-sidebar li {
    margin-bottom: var(--mp-sm);
}

.mp-dashboard-sidebar a {
    display: block;
    padding: var(--mp-sm) var(--mp-md);
    border-radius: var(--mp-radius);
    color: var(--mp-text);
}

.mp-dashboard-sidebar a:hover,
.mp-dashboard-sidebar a.active {
    background: var(--mp-primary);
    color: white;
}

/* ==================== Cart ==================== */
.mp-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.mp-cart-table th,
.mp-cart-table td {
    padding: var(--mp-md);
    text-align: left;
    border-bottom: 1px solid var(--mp-border);
}

.mp-cart-actions {
    display: flex;
    gap: var(--mp-md);
    margin-top: var(--mp-lg);
    justify-content: flex-end;
}

/* ==================== Messages ==================== */
.mp-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--mp-md) var(--mp-lg);
    border-radius: var(--mp-radius);
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: mp-fadeIn 0.3s ease;
}

.mp-message-success {
    background: var(--mp-success);
}

.mp-message-error {
    background: var(--mp-danger);
}

@keyframes mp-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== Footer ==================== */
.mp-footer {
    background: var(--mp-bg-secondary);
    border-top: 1px solid var(--mp-border);
    padding: var(--mp-2xl) 0;
    margin-top: var(--mp-2xl);
}

.mp-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mp-xl);
}

.mp-footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--mp-md);
}

.mp-footer-links li {
    margin-bottom: var(--mp-sm);
}

.mp-footer-links a {
    color: var(--mp-text-light);
}

.mp-footer-links a:hover {
    color: var(--mp-primary);
}

.mp-footer-bottom {
    text-align: center;
    padding-top: var(--mp-xl);
    margin-top: var(--mp-xl);
    border-top: 1px solid var(--mp-border);
    color: var(--mp-text-light);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .mp-dashboard {
        grid-template-columns: 1fr;
    }
    
    .mp-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mp-header-inner {
        flex-wrap: wrap;
    }
    
    .mp-nav-menu {
        display: none;
        width: 100%;
        padding-top: var(--mp-md);
    }
    
    .mp-nav-menu.mp-active {
        display: block;
    }
}

@media (max-width: 480px) {
    .mp-footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ==================== Demo/Preview Styles ==================== */
.mp-section {
    margin: var(--mp-2xl) 0;
}

.mp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--mp-lg);
    padding-bottom: var(--mp-md);
    border-bottom: 2px solid var(--mp-border);
}

.mp-section-header h2 {
    margin: 0;
    font-size: 1.75rem;
}

.mp-view-all {
    color: var(--mp-primary);
    font-weight: 500;
}

.mp-view-all:hover {
    color: var(--mp-primary-dark);
}

/* Demo Badge */
.mp-card-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--mp-primary);
    color: #fff;
}

.mp-badge-featured {
    background: #f59e0b;
}

.mp-badge-sale {
    background: #ef4444;
}

.mp-badge-urgent {
    background: #dc2626;
}

/* Admin Panel */
.mp-admin-panel {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.mp-admin-panel h3 {
    margin-bottom: 10px;
}

.mp-admin-panel p {
    color: #64748b;
    margin-bottom: 20px;
}

/* Property Details */
.mp-property-details {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: #64748b;
    margin: 10px 0;
}

/* Quick Links */
.mp-quick-links {
    margin: var(--mp-xl) 0;
    text-align: center;
}

.mp-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mp-quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--mp-primary);
}

.mp-quick-link .mp-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Search Form */
.mp-hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.mp-hero-search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--mp-border);
    border-radius: 8px;
    font-size: 1rem;
}

.mp-hero-search input:focus {
    outline: none;
    border-color: var(--mp-primary);
}

.mp-hero-search button {
    padding: 12px 30px;
}

/* Product Price */
.mp-product-price {
    margin: 10px 0;
}

.mp-product-price .mp-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
}

.mp-product-price .mp-price-sale {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
}

.mp-product-price .mp-price-regular {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

/* ==================== Home Style Variants ==================== */

/* Modern Style (Default) */
.mp-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    border-radius: 16px;
    margin: 20px 0 40px;
}

.mp-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.mp-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Grand Style - Big visual impact */
body.home-style-grand .mp-hero {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

body.home-style-grand .mp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.home-style-grand .mp-hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.home-style-grand .mp-quick-links {
    margin: 60px 0;
}

body.home-style-grand .mp-quick-link {
    padding: 50px 30px;
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: all 0.4s ease;
}

body.home-style-grand .mp-quick-link:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.2);
}

body.home-style-grand .mp-quick-link .mp-icon {
    font-size: 4rem;
}

body.home-style-grand .mp-section-header h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

body.home-style-grand .mp-section-header {
    flex-direction: column;
}

body.home-style-grand .mp-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

body.home-style-grand .mp-card-image {
    height: 280px;
    overflow: hidden;
}

body.home-style-grand .mp-card-image img {
    transition: transform 0.5s ease;
}

body.home-style-grand .mp-card:hover .mp-card-image img {
    transform: scale(1.1);
}

/* Colorful Style */
body.home-style-colorful .mp-hero {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 100px 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.home-style-colorful .mp-hero h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

body.home-style-colorful .mp-quick-link {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.home-style-colorful .mp-quick-link:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); }
body.home-style-colorful .mp-quick-link:nth-child(2) { background: linear-gradient(135deg, #11998e, #38ef7d); }
body.home-style-colorful .mp-quick-link:nth-child(3) { background: linear-gradient(135deg, #eb3349, #f45c43); }

body.home-style-colorful .mp-quick-link span { color: #fff; }
body.home-style-colorful .mp-quick-link .mp-icon { font-size: 3rem; }

body.home-style-colorful .mp-card-badge {
    border-radius: 50px;
    padding: 8px 20px;
}

/* Elegant Style */
body.home-style-elegant .mp-hero {
    background: #fafbfc;
    border: 1px solid #e1e4e8;
    padding: 80px 20px;
}

body.home-style-elegant .mp-hero h1 {
    color: #24292e;
    font-weight: 300;
    letter-spacing: 2px;
}

body.home-style-elegant .mp-hero p {
    color: #586069;
    font-weight: 300;
}

body.home-style-elegant .mp-quick-link {
    border: 1px solid #e1e4e8;
    background: #fff;
    border-radius: 4px;
}

body.home-style-elegant .mp-quick-link:hover {
    border-color: #0366d6;
}

body.home-style-elegant .mp-section-header h2 {
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.5rem;
}

body.home-style-elegant .mp-card {
    border: 1px solid #e1e4e8;
    background: #fff;
    border-radius: 4px;
}

body.home-style-elegant .mp-card-title a {
    font-weight: 400;
}

/* Section with custom background */
.mp-section-grand {
    position: relative;
    padding: 80px 0;
    margin: 60px 0;
    border-radius: 20px;
    overflow: hidden;
}

.mp-section-grand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(30,60,114,0.95) 0%, rgba(42,82,152,0.9) 100%);
    z-index: 1;
}

.mp-section-grand .mp-section-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.mp-section-grand h2 {
    color: #fff;
    font-size: 2rem;
}

.mp-section-grand .mp-card {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.home-style-grand .mp-hero h1 { font-size: 2rem; }
    body.home-style-colorful .mp-hero h1 { font-size: 1.8rem; }
    body.home-style-grand .mp-quick-link { padding: 30px 20px; }
    body.home-style-grand .mp-quick-link .mp-icon { font-size: 2.5rem; }
}

/* ========================================
   房产租售模块 - 安居客风格
   ======================================== */

/* 列表页筛选 */
.property-filter {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.filter-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.filter-item {
    flex: 1;
    min-width: 150px;
}
.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}
.filter-item select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.filter-submit .mp-btn {
    width: 100%;
    padding: 10px 20px;
}

/* 结果统计 */
.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}
.result-info strong {
    color: #ff6600;
}
.sort-tabs a {
    margin-left: 15px;
    color: #666;
    text-decoration: none;
}
.sort-tabs a:hover, .sort-tabs a.active {
    color: #2563eb;
}

/* 房源卡片 */
.property-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .property-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .property-list { grid-template-columns: 1fr; }
}
.property-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.property-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-tag {
    position: absolute;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}
.property-tag.feature {
    background: #ff6600;
    top: 10px;
    left: 10px;
}
.property-tag.type-出租 {
    background: #00b365;
    bottom: 10px;
    right: 10px;
}
.property-tag.type-出售 {
    background: #ff6600;
    bottom: 10px;
    right: 10px;
}
.property-info {
    padding: 15px;
}
.property-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.property-title a {
    color: #333;
}
.property-title a:hover {
    color: #2563eb;
}
.property-price {
    margin-bottom: 10px;
}
.property-price .price-value {
    font-size: 24px;
    font-weight: 700;
    color: #ff6600;
}
.property-price .price-unit {
    font-size: 14px;
    color: #999;
}
.property-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.property-address {
    font-size: 13px;
    color: #999;
}
.property-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    padding-top: 0;
}
.property-actions .mp-btn {
    flex: 1;
    text-align: center;
}

/* 分页 */
.mp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.mp-pagination a, .mp-pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
}
.mp-pagination a:hover, .mp-pagination .current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 发布按钮 */
.submit-property-fixed {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 100;
}
.submit-property-fixed .mp-btn {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 详情页 */
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.property-main-info {
    flex: 1;
}
.property-main-info .property-title {
    font-size: 24px;
    margin-bottom: 10px;
}
.property-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}
.property-badge.featured {
    background: linear-gradient(135deg, #ff6600, #ff9500);
    color: #fff;
}
.property-badge.type-出租 {
    background: #00b365;
    color: #fff;
}
.property-badge.type-出售 {
    background: #ff6600;
    color: #fff;
}
.property-price-box {
    text-align: right;
}
.property-price-box .price-value {
    font-size: 32px;
    font-weight: 700;
    color: #ff6600;
}
.property-price-box .price-unit {
    font-size: 14px;
    color: #999;
}

/* 图库 */
.property-gallery {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.gallery-main {
    height: 450px;
    overflow: hidden;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
}
.thumb-item {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.thumb-item:hover, .thumb-item.active {
    opacity: 1;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 详情 */
.property-details {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
}
.detail-section {
    margin-bottom: 30px;
}
.detail-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.detail-item .label {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}
.detail-item .value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.detail-address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.property-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}
.property-description {
    line-height: 1.8;
    color: #666;
}

/* 悬浮联系栏 */
.property-contact-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 100;
}
.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}
.contact-item:hover {
    color: #2563eb;
}
.contact-item .icon {
    font-size: 20px;
}

/* 空状态 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.no-results p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #999;
}
.breadcrumb a {
    color: #666;
}
.breadcrumb .separator {
    margin: 0 10px;
}
.breadcrumb .current {
    color: #333;
}

/* 列表页搜索栏 */
.archive-search-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.archive-search-bar form {
    display: flex;
    gap: 10px;
}
.archive-search-bar input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.archive-search-bar input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
}
.archive-search-bar button {
    padding: 12px 25px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.archive-search-bar button:hover {
    background: #1d4ed8;
}

/* 默认导航菜单 */
.mp-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}
.mp-nav-menu li {
    margin: 0;
}
.mp-nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}
.mp-nav-menu a:hover {
    color: #2563eb;
    background: #f0f9ff;
}

/* 登录注册页面样式 */
.mp-auth-page {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}
.auth-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}
.auth-tabs .tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    background: #f9f9f9;
    transition: all 0.3s;
}
.auth-tabs .tab.active {
    color: #2563eb;
    background: #fff;
    border-bottom: 2px solid #2563eb;
}
.auth-form-wrapper {
    padding: 40px;
}
.auth-form input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}
.auth-form input:focus {
    border-color: #2563eb;
    outline: none;
}
.auth-form .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}
.auth-form .submit-btn:hover {
    opacity: 0.9;
}
.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #999;
}
.auth-links {
    text-align: center;
    margin-top: 20px;
}
.auth-links a {
    color: #2563eb;
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* 修复页面宽度和导航显示 */
.mp-page, .site, body {
    min-width: 100%;
    overflow-x: hidden;
}
.mp-header {
    width: 100%;
}
.mp-header-inner {
    max-width: 100%;
    width: 100%;
}
.mp-nav {
    flex: 1;
    overflow: visible;
}
.mp-nav-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
}
