/* ============================================
   房地产OA系统 - 橙红活力风格
   共享样式文件 style.css
   ============================================ */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #F5F6F8;
    color: #1F2937;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    display: block;
}

img {
    display: block;
    max-width: 100%;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

/* ---------- 移动端容器 ---------- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #F5F6F8;
    position: relative;
    padding-bottom: 70px; /* 底部导航高度 */
    overflow: hidden;
}

/* ---------- 加载动画遮罩 ---------- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-pulse {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #EA580C 0%, #B91C1C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
    animation: pulseRing 1.2s ease-in-out infinite;
}

.loader-pulse::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 20px;
    border: 2px solid rgba(234, 88, 12, 0.3);
    animation: pulseRing 1.2s ease-in-out infinite;
}

.loader-pulse svg {
    width: 28px;
    height: 28px;
}

.loader-text {
    color: #EA580C;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* ---------- 滚动渐入动画 ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }
.fade-up.delay-4 { animation-delay: 0.4s; }
.fade-up.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 顶部导航栏 ---------- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F6F8;
    position: relative;
    transition: background 0.2s;
}

.icon-btn:active {
    background: #E5E7EB;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: #1F2937;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EA580C;
    border: 1.5px solid #fff;
}

/* ---------- 问候头部（首页用） ---------- */
.greeting-header {
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #EA580C 0%, #B91C1C 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.greeting-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.greeting-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245,158,11,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.greeting-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.4);
}

.avatar svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.greeting-text h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.greeting-text p {
    font-size: 12px;
    opacity: 0.85;
}

.greeting-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.greeting-actions .icon-btn {
    background: rgba(255,255,255,0.2);
}

.greeting-actions .icon-btn svg {
    stroke: #fff;
}

.greeting-actions .icon-btn:active {
    background: rgba(255,255,255,0.3);
}

.search-bar {
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.search-bar input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    color: #1F2937;
    outline: none;
}

.search-bar input::placeholder {
    color: #9CA3AF;
}

.search-bar .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #9CA3AF;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- 通用卡片 ---------- */
.card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    overflow: hidden;
}

/* ---------- Bento便当格 ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.bento-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.bento-item:active {
    background: #F5F6F8;
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bento-icon.orange { background: linear-gradient(135deg, #EA580C, #F59E0B); }
.bento-icon.red { background: linear-gradient(135deg, #B91C1C, #DC2626); }
.bento-icon.blue { background: linear-gradient(135deg, #1E3A8A, #3B82F6); }
.bento-icon.green { background: linear-gradient(135deg, #059669, #10B981); }
.bento-icon.gold { background: linear-gradient(135deg, #D97706, #F59E0B); }
.bento-icon.purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.bento-icon.teal { background: linear-gradient(135deg, #0D9488, #2DD4BF); }
.bento-icon.gray { background: linear-gradient(135deg, #4B5563, #9CA3AF); }

.bento-label {
    font-size: 12px;
    color: #1F2937;
    font-weight: 500;
}

/* ---------- 数据看板卡片 ---------- */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin: 20px 0 12px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.section-title .more-link {
    font-size: 12px;
    color: #EA580C;
    display: flex;
    align-items: center;
    gap: 2px;
}

.section-title .more-link svg {
    width: 12px;
    height: 12px;
    stroke: #EA580C;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-card-top {
    height: 6px;
}

.stat-card-top.orange { background: linear-gradient(90deg, #EA580C, #F59E0B); }
.stat-card-top.red { background: linear-gradient(90deg, #B91C1C, #DC2626); }
.stat-card-top.blue { background: linear-gradient(90deg, #1E3A8A, #3B82F6); }
.stat-card-top.green { background: linear-gradient(90deg, #059669, #10B981); }

.stat-card-body {
    padding: 14px;
}

.stat-card-label {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-label svg {
    width: 14px;
    height: 14px;
    stroke: #9CA3AF;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
}

.stat-card-value .unit {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    margin-left: 2px;
}

.stat-card-trend {
    margin-top: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-trend.up { color: #059669; }
.stat-card-trend.down { color: #B91C1C; }

.stat-card-trend svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ---------- 状态徽章 ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
}

.status-badge.orange { background: #FEF3C7; color: #D97706; }
.status-badge.green { background: #D1FAE5; color: #059669; }
.status-badge.red { background: #FEE2E2; color: #B91C1C; }
.status-badge.blue { background: #DBEAFE; color: #1E3A8A; }
.status-badge.gray { background: #F3F4F6; color: #6B7280; }
.status-badge.gold { background: #FEF3C7; color: #B45309; }

/* ---------- 列表项 ---------- */
.list-section {
    margin: 0 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #F5F6F8;
    transition: background 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background: #F9FAFB;
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.list-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-desc {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-item-arrow {
    margin-left: 8px;
    flex-shrink: 0;
}

.list-item-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #9CA3AF;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- 销售趋势图 ---------- */
.chart-card {
    margin: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

.chart-tabs {
    display: flex;
    gap: 4px;
    background: #F5F6F8;
    border-radius: 6px;
    padding: 2px;
}

.chart-tab {
    padding: 4px 10px;
    font-size: 11px;
    color: #6B7280;
    border-radius: 4px;
    transition: all 0.2s;
}

.chart-tab.active {
    background: #EA580C;
    color: #fff;
    font-weight: 500;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding: 0 4px;
    gap: 6px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    max-width: 24px;
    background: linear-gradient(180deg, #EA580C, #F59E0B);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.6s ease;
}

.bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px 4px 0 0;
}

.bar-label {
    font-size: 10px;
    color: #9CA3AF;
}

/* ---------- 底部导航 ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    color: #9CA3AF;
    transition: color 0.2s;
}

.nav-item.active {
    color: #EA580C;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item.active svg {
    stroke: #EA580C;
}

.nav-item-label {
    font-size: 11px;
    font-weight: 500;
}

/* ---------- 项目列表页 ---------- */
.projects-header {
    padding: 16px 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.projects-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.projects-header .filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #FEF3C7;
    color: #D97706;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.projects-header .filter-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.projects-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.overview-item {
    padding: 16px 12px;
    text-align: center;
    background: #fff;
}

.overview-num {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.overview-num.orange { color: #EA580C; }
.overview-num.green { color: #059669; }
.overview-num.blue { color: #1E3A8A; }

.overview-label {
    font-size: 12px;
    color: #6B7280;
}

.projects-search {
    padding: 0 12px 12px;
}

.projects-search .search-input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    background: #fff;
    color: #1F2937;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.projects-search .search-wrap {
    position: relative;
}

.projects-search .search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #9CA3AF;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-tabs {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar {
    display: none;
}

.status-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #fff;
    border-radius: 16px;
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.status-tab.active {
    background: linear-gradient(135deg, #EA580C, #F59E0B);
    color: #fff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* ---------- 项目卡片 ---------- */
.project-list {
    padding: 0 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.project-card:active {
    transform: scale(0.98);
}

.project-card-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

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

.project-card-status {
    position: absolute;
    top: 10px;
    left: 10px;
}

.project-card-body {
    padding: 12px 14px;
}

.project-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card-location {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.project-card-location svg {
    width: 12px;
    height: 12px;
    stroke: #9CA3AF;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-card-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #F5F6F8;
}

.project-stat {
    text-align: center;
    flex: 1;
}

.project-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #EA580C;
    margin-bottom: 2px;
}

.project-stat-value .unit {
    font-size: 10px;
    font-weight: 500;
    color: #6B7280;
    margin-left: 1px;
}

.project-stat-label {
    font-size: 10px;
    color: #9CA3AF;
}

/* ---------- 项目详情页 ---------- */
.detail-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.detail-header .back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F6F8;
}

.detail-header .back-btn svg {
    width: 20px;
    height: 20px;
    stroke: #1F2937;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-header h1 {
    font-size: 17px;
    font-weight: 600;
    color: #1F2937;
}

.detail-header .more-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F6F8;
}

.detail-header .more-btn svg {
    width: 20px;
    height: 20px;
    stroke: #1F2937;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-hero {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    pointer-events: none;
}

.project-info {
    margin: -30px 12px 0;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.project-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-info-location {
    font-size: 13px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.project-info-location svg {
    width: 14px;
    height: 14px;
    stroke: #9CA3AF;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-info-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #F5F6F8;
}

.price-num {
    font-size: 24px;
    font-weight: 700;
    color: #EA580C;
}

.price-unit {
    font-size: 12px;
    color: #6B7280;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
    margin: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.detail-stat {
    text-align: center;
}

.detail-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.detail-stat-value.orange { color: #EA580C; }
.detail-stat-value.green { color: #059669; }
.detail-stat-value.blue { color: #1E3A8A; }
.detail-stat-value.gold { color: #D97706; }

.detail-stat-label {
    font-size: 11px;
    color: #6B7280;
}

/* 进度条 */
.progress-section {
    margin: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-title svg {
    width: 18px;
    height: 18px;
    stroke: #EA580C;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.progress-percent {
    font-size: 16px;
    font-weight: 700;
    color: #EA580C;
}

.progress-bar {
    height: 8px;
    background: #F5F6F8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #EA580C, #F59E0B);
    border-radius: 4px;
    position: relative;
    transition: width 1s ease;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
}

.progress-desc {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    justify-content: space-between;
}

/* 户型展示 */
.floorplan-section {
    margin: 12px;
}

.floorplan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.floorplan-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

.floorplan-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
}

.floorplan-list::-webkit-scrollbar {
    display: none;
}

.floorplan-card {
    flex-shrink: 0;
    width: 160px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

.floorplan-card-img {
    height: 100px;
    overflow: hidden;
    background: #F5F6F8;
}

.floorplan-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floorplan-card-body {
    padding: 10px;
}

.floorplan-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.floorplan-card-area {
    font-size: 11px;
    color: #6B7280;
}

/* 项目团队 */
.team-section {
    margin: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.team-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 14px;
}

.team-list {
    display: flex;
    gap: 16px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EA580C, #F59E0B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.team-avatar.blue { background: linear-gradient(135deg, #1E3A8A, #3B82F6); }
.team-avatar.green { background: linear-gradient(135deg, #059669, #10B981); }
.team-avatar.red { background: linear-gradient(135deg, #B91C1C, #DC2626); }

.team-name {
    font-size: 12px;
    font-weight: 500;
    color: #1F2937;
}

.team-role {
    font-size: 10px;
    color: #9CA3AF;
}

/* 底部操作栏 */
.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    z-index: 100;
}

.btn {
    flex: 1;
    height: 42px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #EA580C, #F59E0B);
    color: #fff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.btn-secondary {
    background: #F5F6F8;
    color: #1F2937;
}

.btn-secondary:active {
    background: #E5E7EB;
}

/* ---------- 审批中心 ---------- */
.approval-header {
    padding: 16px 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.approval-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.approval-tabs {
    display: flex;
    background: #fff;
    padding: 0 12px;
    gap: 0;
    border-bottom: 1px solid #F5F6F8;
    position: sticky;
    top: 56px;
    z-index: 99;
}

.approval-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.approval-tab.active {
    color: #EA580C;
}

.approval-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #EA580C, #F59E0B);
    border-radius: 2px;
}

.approval-tab-count {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

.approval-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    margin: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.approval-stat {
    text-align: center;
    position: relative;
}

.approval-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: #F5F6F8;
}

.approval-stat-num {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.approval-stat-num.orange { color: #EA580C; }
.approval-stat-num.green { color: #059669; }
.approval-stat-num.red { color: #B91C1C; }

.approval-stat-label {
    font-size: 12px;
    color: #6B7280;
}

.approval-list {
    padding: 0 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.approval-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.approval-card:active {
    transform: scale(0.98);
}

.approval-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.approval-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.approval-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approval-type-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.approval-type-icon.orange { background: linear-gradient(135deg, #EA580C, #F59E0B); }
.approval-type-icon.blue { background: linear-gradient(135deg, #1E3A8A, #3B82F6); }
.approval-type-icon.green { background: linear-gradient(135deg, #059669, #10B981); }
.approval-type-icon.red { background: linear-gradient(135deg, #B91C1C, #DC2626); }
.approval-type-icon.purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); }

.approval-type-text {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
}

.approval-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.approval-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9CA3AF;
}

.approval-card-footer .sender {
    display: flex;
    align-items: center;
    gap: 6px;
}

.approval-card-footer .sender-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EA580C, #F59E0B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
}

/* ---------- 我的页面 ---------- */
.member-header {
    padding: 40px 20px 60px;
    background: linear-gradient(135deg, #EA580C 0%, #B91C1C 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.member-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.member-header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 5%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245,158,11,0.35) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.member-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.5);
    overflow: hidden;
}

.member-avatar svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.member-info p {
    font-size: 13px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-info p svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255,255,255,0.8);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: -36px 12px 0;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.member-stat {
    padding: 16px 10px;
    text-align: center;
    background: #fff;
}

.member-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #EA580C;
    margin-bottom: 4px;
}

.member-stat-label {
    font-size: 12px;
    color: #6B7280;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
    margin: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.member-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.member-grid-item:active {
    background: #F5F6F8;
}

.member-grid-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-grid-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-grid-label {
    font-size: 11px;
    color: #1F2937;
    font-weight: 500;
}

.logout-btn {
    margin: 20px 12px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #B91C1C;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.logout-btn:active {
    background: #FEF2F2;
    transform: scale(0.98);
}

.logout-btn svg {
    width: 18px;
    height: 18px;
    stroke: #B91C1C;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- 通用间距 ---------- */
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
