/* ========================================
   区域性灵活用工平台 - 现代玻璃拟态风格
   ======================================== */

/* CSS 变量定义 */
:root {
    /* 主色调 - 活力橙 */
    --primary: #ff6b35;
    --primary-light: #ff8f6b;
    --primary-dark: #e55a2b;
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);

    /* 辅助色 */
    --secondary: #00d4aa;
    --secondary-light: #5eead4;
    --accent: #6366f1;

    /* 中性色 */
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;

    /* 背景色 */
    --bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.3);

    /* 圆角 */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* 禁止横向滚动 */
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden; /* 禁止横向滚动 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%; /* 确保body宽度为100% */
}

/* ========================================
   导航栏 - 玻璃拟态效果
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 70px;
    height: auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform var(--transition);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-brand i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.nav-brand:hover .platform-logo {
    transform: rotate(360deg);
}

.nav-links {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 6px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-xl);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    transform: translateY(-1px);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

.nav-links a span {
    position: relative;
    z-index: 1;
}

.nav-location {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-xl);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.nav-location:hover {
    background: rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.nav-location i {
    font-size: 1rem;
}

.nav-location select {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.nav-location select:focus {
    outline: none;
}

/* ========================================
   主内容区
   ======================================== */
#app {
    margin-top: 70px;
    min-height: calc(100vh - 70px - 80px);
    padding: 0 20px;
}

.page {
    display: none;
    padding: 30px 0 50px;
    max-width: 1200px;
    margin: 0 auto;
    animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   Hero 区域 - 渐变卡片
   ======================================== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* 搜索框 */
.search-box {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    transition: transform var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 20px 28px;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: var(--dark);
}

.search-box input::placeholder {
    color: var(--gray-light);
}

.search-box button {
    width: 70px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ========================================
   分类区域
   ======================================== */
.categories {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card .icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-card .icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.bg-advert { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.bg-buy { background: linear-gradient(135deg, #4ecdc4, #44a8a0); }
.bg-rent { background: linear-gradient(135deg, #45b7d1, #3a9bb3); }
.bg-job { background: linear-gradient(135deg, #96ceb4, #7eb89c); }
.bg-task { background: linear-gradient(135deg, #feca57, #e5b54d); }
.bg-service { background: linear-gradient(135deg, #ff9ff3, #e88ed9); }
.bg-repair { background: linear-gradient(135deg, #ff6b35, #e55a2b); }
.bg-move { background: linear-gradient(135deg, #6366f1, #5558e3); }
.bg-domestic { background: linear-gradient(135deg, #00d4aa, #00b894); }
.bg-walkdog { background: linear-gradient(135deg, #fb923c, #ea832d); }
.bg-driver { background: linear-gradient(135deg, #a855f7, #9333ea); }
.bg-carrental { background: linear-gradient(135deg, #22c55e, #16a34a); }
.bg-company { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.bg-account { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.bg-freight { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bg-abroad { background: linear-gradient(135deg, #0f172a, #1e293b); }
.bg-highend { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-pet { background: linear-gradient(135deg, #f472b6, #ec4899); }
.bg-wedding { background: linear-gradient(135deg, #fda4af, #fb7185); }
.bg-funeral { background: linear-gradient(135deg, #6b7280, #5b636e); }

.category-card span {
    display: block;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.category-card small {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========================================
   最新发布
   ======================================== */
.latest-section {
    margin-bottom: 40px;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.item-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform var(--transition);
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.item-card:hover::before {
    transform: scaleY(1);
}

.item-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-advert { background: rgba(255, 107, 107, 0.12); color: #ff6b6b; }
.type-buy { background: rgba(78, 205, 196, 0.12); color: #4ecdc4; }
.type-rent { background: rgba(69, 183, 209, 0.12); color: #45b7d1; }
.type-job { background: rgba(150, 206, 180, 0.12); color: #5a9c7a; }
.type-task { background: rgba(254, 202, 87, 0.12); color: #d4a83a; }
.type-service { background: rgba(255, 159, 243, 0.12); color: #d47ac7; }
.type-repair { background: rgba(255, 107, 53, 0.12); color: #ff6b35; }
.type-move { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.type-domestic { background: rgba(0, 212, 170, 0.12); color: #00d4aa; }
.type-walkdog { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.type-driver { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.type-carrental { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.type-company { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.type-account { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
.type-freight { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.type-abroad { background: rgba(15, 23, 42, 0.12); color: #0f172a; }
.type-highend { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.type-pet { background: rgba(244, 114, 182, 0.12); color: #f472b6; }
.type-wedding { background: rgba(253, 164, 175, 0.12); color: #fda4af; }
.type-funeral { background: rgba(107, 114, 128, 0.12); color: #6b7280; }

.item-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.item-price {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.item-price .unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    -webkit-text-fill-color: var(--gray);
}

.item-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.item-location i {
    color: var(--primary);
}

.item-time {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.8rem;
    color: var(--gray-light);
    font-weight: 500;
}

/* ========================================
   列表页
   ======================================== */
.page-header {
    margin-bottom: 32px;
    background: var(--bg-card);
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.page-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary);
    font-size: 2rem;
}

.page-header p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 12px 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    color: var(--dark);
    font-weight: 500;
    min-width: 160px;
}

.filter-bar select:hover,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* ========================================
   发布表单
   ======================================== */
.post-form {
    max-width: 720px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

.form-group {
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group label::after {
    content: ' *';
    color: var(--primary);
}

.form-group label:not(:has(+ [required]))::after {
    content: '';
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all var(--transition);
    font-family: inherit;
    background: white;
    color: var(--dark);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

/* 类型选择器 */
.type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.type-option {
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    background: white;
}

.type-option:hover span {
    border-color: var(--primary-light);
    color: var(--primary);
}

.type-option input:checked + span {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    margin-top: 12px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ========================================
   详情页
   ======================================== */
.detail-card {
    max-width: 840px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.detail-header {
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 143, 107, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark);
}

.detail-price {
    font-size: 2.4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.detail-price .negotiable {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
    -webkit-text-fill-color: var(--gray);
}

.detail-body {
    padding: 40px;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.detail-section h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.detail-section p {
    color: var(--gray);
    line-height: 1.9;
    white-space: pre-wrap;
    font-size: 1.05rem;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.detail-info-item:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: translateX(4px);
}

.detail-info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-sm);
}

.detail-info-item span {
    color: var(--gray);
    font-size: 0.9rem;
}

.detail-info-item strong {
    display: block;
    color: var(--dark);
    font-size: 1.05rem;
    margin-top: 4px;
}

.detail-contact {
    padding: 32px 40px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(0, 212, 170, 0.08) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-contact h3 {
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    min-width: 160px;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    transition: all var(--transition);
    font-size: 1rem;
}

.contact-btn.phone {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.contact-btn.phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
}

.contact-btn.wechat {
    background: linear-gradient(135deg, #07c160 0%, #05a350 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
}

.contact-btn.wechat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 193, 96, 0.5);
}

.contact-btn.back {
    background: white;
    color: var(--dark);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.contact-btn.back:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* 公益活动板块 */
.charity-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.charity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.charity-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.charity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.charity-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.charity-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.charity-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.charity-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.charity-stats span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.charity-stats i {
    margin-right: 5px;
}

.charity-full-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* 房屋租售样式 */
.housing-filters {
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius);
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--gray-lighter);
    background: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-reset {
    margin-left: auto;
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.housing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.housing-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.housing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.housing-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.housing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.housing-card:hover .housing-image img {
    transform: scale(1.05);
}

.housing-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.verified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.housing-content {
    padding: 20px;
}

.housing-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.housing-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.housing-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.housing-info span {
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 4px;
}

.housing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.housing-tag {
    padding: 4px 10px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.housing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.housing-price .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.housing-price .unit {
    font-size: 0.95rem;
    color: var(--gray);
}

/* 房屋详情样式 */
.housing-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.detail-header {
    background: linear-gradient(135deg, #ff6b35, #ff8f6b);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s;
}

.detail-image:hover {
    transform: scale(1.02);
}

.detail-info {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: var(--gray);
    width: 120px;
    flex-shrink: 0;
}

.info-row .value {
    color: var(--dark);
    font-weight: 600;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-description {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.detail-description h2 {
    margin-bottom: 15px;
    color: var(--dark);
}

.detail-description p {
    line-height: 1.8;
    color: var(--gray);
}

.detail-contact {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-contact h2 {
    margin-bottom: 15px;
    color: var(--dark);
}

.detail-contact p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-hint {
    color: var(--gray);
    font-size: 0.9rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--dark);
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-5px);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .housing-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .housing-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        padding: 25px;
    }

    .detail-header h1 {
        font-size: 1.5rem;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* 用户菜单样式 */
.user-menu-wrapper {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff6b35, #ff8f6b);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.user-avatar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f8fafc;
    color: var(--primary);
}

.user-dropdown a i {
    font-size: 1.1rem;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: white;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.nav-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8f6b);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 三级联动选择器样式 */
#location-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-btn {
    padding: 8px 12px;
    background: white;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.location-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.location-btn.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#location-selector-container select {
    padding: 8px 12px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--dark);
    background: white;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 100px;
}

#location-selector-container select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#location-selector-container select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#province-select {
    min-width: 110px;
}

#city-select {
    min-width: 110px;
}

#district-select {
    min-width: 100px;
}

/* 响应式 - 移动端适配 */
@media (max-width: 768px) {
    #location-selector-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    #location-selector-container select {
        width: 100%;
        min-width: auto;
    }

    .nav-location {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}



/* ========================================
   底部
   ======================================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray);
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 40px;
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--gray);
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.4;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.empty-state p {
    font-size: 1rem;
    color: var(--gray-light);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        height: 64px;
        padding: 0 16px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-brand i {
        font-size: 1.6rem;
    }
    
    .nav-links {
        gap: 4px;
        padding: 4px;
    }
    
    .nav-links a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .nav-location span {
        display: none;
    }
    
    .nav-location {
        padding: 10px;
    }
    
    #app {
        margin-top: 64px;
        padding: 0 16px;
    }
    
    .hero {
        padding: 50px 24px;
        margin-bottom: 36px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-box input {
        padding: 16px 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .category-card {
        padding: 24px 14px;
    }
    
    .category-card .icon {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }
    
    .item-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .page-header {
        padding: 24px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-form {
        padding: 28px 20px;
    }
    
    .detail-header,
    .detail-body {
        padding: 28px 24px;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-price {
        font-size: 1.8rem;
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .type-selector {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* 核心价值观响应式 */
    .core-values-section {
        margin: 30px 10px;
        padding: 30px 20px;
    }
    
    .core-values-section > div {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   新增样式 - 注册和认证按钮
   ======================================== */

.nav-register {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    color: white !important;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ========================================
   新增样式 - 平台理念组件
   ======================================== */

/* 平台使命声明 */
.mission-statement {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin: 20px 0 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-statement p {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mission-statement i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* 副标题 */
.subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin: 12px 0 24px;
    font-weight: 500;
}

/* 平台理念区域 */
.platform-values {
    margin: 48px 0;
    padding: 32px 0;
    position: relative;
}

.platform-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.platform-values h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.8;
}

.value-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.value-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 212, 170, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.value-card:nth-child(2) .value-icon {
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(99, 102, 241, 0.1));
}

.value-card:nth-child(3) .value-icon {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(255, 107, 53, 0.1));
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.value-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* 底部补充信息 */
.footer-note {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: 8px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mission-statement {
        padding: 14px 20px;
        margin: 16px 0 24px;
    }
    
    .mission-statement p {
        font-size: 1rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin: 10px 0 20px;
    }
    
    .platform-values {
        margin: 36px 0;
        padding: 24px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .value-card {
        padding: 28px 22px;
    }
    
    .value-card h3 {
        font-size: 1.3rem;
    }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
