/* ==================== 筑企盈联 - nanfu.global风格 ==================== */

:root {
    --primary: #E61721;
    --primary-dark: #C41419;
    --primary-light: #FF2D38;
    --accent: #1A1A1A;
    --accent-light: #333333;
    --bg-primary: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E8E8E8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --price-red: #E61721;
    --price-green: #10B981;
    --skill-bg: #FFF0F0;
    --skill-text: #E61721;
    --urgent-bg: #FFF7ED;
    --urgent-text: #F97316;
    --green-bg: #ECFDF5;
    --green-text: #059669;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== 导航栏 ==================== */
.navbar {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    background: #fff !important;
    box-shadow: var(--shadow);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1;
}

.search-bar .input-group {
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
}

.search-bar .form-control {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
}

.search-bar .form-control:focus {
    box-shadow: none;
}

.search-select {
    border: none;
    border-right: 1px solid var(--border);
    background: #F1F5F9;
    font-size: 13px;
    max-width: 90px;
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

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

.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px !important;
    font-size: 12px;
    color: var(--text-secondary) !important;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.nav-icon-link i {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-icon-link:hover {
    color: var(--primary) !important;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* ==================== 快捷分类导航 ==================== */
.quick-nav {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.quick-nav-item:hover {
    color: var(--primary);
    background: var(--skill-bg);
    transform: translateY(-2px);
}

.quick-nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 4px;
}

.quick-nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* ==================== Hero区域 ==================== */
.hero-section {
    background: #1A1A1A;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,23,33,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.hero-title .highlight {
    color: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    max-width: 600px;
}

.hero-actions .btn {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 8px;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==================== 内容区块 ==================== */
.section-block {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-primary);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.section-more:hover {
    color: var(--primary);
}

/* ==================== 卡片样式 ==================== */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #F1F5F9;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    margin-top: auto;
}

.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--price-red);
}

.price-current::before {
    content: '¥';
    font-size: 14px;
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.green-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--green-bg);
    color: var(--green-text);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==================== 需求卡片 ==================== */
.demand-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
    cursor: pointer;
}

.demand-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.demand-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.demand-title a {
    color: inherit;
    text-decoration: none;
}

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

.demand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-skill {
    background: var(--skill-bg);
    color: var(--skill-text);
}

.tag-urgent {
    background: var(--urgent-bg);
    color: var(--urgent-text);
}

.tag-budget {
    background: #FEF2F2;
    color: var(--price-red);
}

.tag-location {
    background: #F5F3FF;
    color: #7C3AED;
}

.demand-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.demand-meta i {
    margin-right: 4px;
    color: var(--primary);
}

.demand-budget {
    font-size: 22px;
    font-weight: 800;
    color: var(--price-red);
}

.demand-budget::before {
    content: '¥';
    font-size: 14px;
}

/* ==================== 工人卡片 ==================== */
.worker-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.worker-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.worker-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.worker-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.worker-rate {
    font-size: 18px;
    font-weight: 700;
    color: var(--price-red);
}

.worker-rate::before {
    content: '¥';
    font-size: 13px;
}

.worker-rate small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.worker-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 12px;
}

/* ==================== 按钮样式 ==================== */
.btn-primary-custom {
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,23,33,0.3);
}

.btn-accent {
    background: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--accent-light);
    color: white;
}

/* ==================== 表单样式 ==================== */
.modern-form .form-control,
.modern-form .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.modern-form .form-control:focus,
.modern-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230,23,33,0.1);
}

.modern-form .form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* ==================== 筛选栏 ==================== */
.filter-bar {
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filter-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
    margin: 4px;
    border: 1px solid transparent;
}

.filter-item:hover,
.filter-item.active {
    color: var(--primary);
    background: var(--skill-bg);
    border-color: var(--primary);
}

/* ==================== 消息提示 ==================== */
.modern-alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
}

/* ==================== 底部 ==================== */
.modern-footer {
    background: #1A1A1A;
    color: #94A3B8;
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-brand {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #94A3B8;
    margin-right: 8px;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 32px 0 16px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #64748B;
}

/* ==================== 分类标签栏 ==================== */
.category-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.category-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.4s cubic-bezier(0.38,0,0,1);
}

.category-tab:hover,
.category-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ==================== 数据中台 ==================== */
.dashboard-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 100%;
}

.dashboard-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .search-bar {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s cubic-bezier(0.38,0,0,1);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ==================== 开屏动画（splash screen） ==================== */
#splash-screen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999;background:linear-gradient(135deg,#fff 0%,#E61721 100%);display:flex;align-items:center;justify-content:center;transition:opacity .6s ease,transform .6s ease}
#splash-screen.fade-out{opacity:0;transform:scale(1.05);pointer-events:none}
.splash-bg{position:absolute;inset:0;overflow:hidden}
.splash-circle{position:absolute;border-radius:50%;opacity:0}
.splash-circle-1{width:400px;height:400px;top:50%;left:50%;transform:translate(-50%,-50%) scale(.3);background:rgba(255,255,255,.08);animation:circleExpand 1.2s cubic-bezier(.25,.46,.45,.94) forwards}
.splash-circle-2{width:280px;height:280px;top:50%;left:50%;transform:translate(-50%,-50%) scale(.5);border:2px solid rgba(255,255,255,.15);background:transparent;animation:circleExpand 1.2s .2s cubic-bezier(.25,.46,.45,.94) forwards}
.splash-circle-3{width:500px;height:500px;top:50%;left:50%;transform:translate(-50%,-50%) scale(.2);background:rgba(255,255,255,.04);animation:circleExpand 1.4s .1s cubic-bezier(.25,.46,.45,.94) forwards}
@keyframes circleExpand{to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.splash-content{position:relative;z-index:1;text-align:center;color:#fff}
.splash-logo{width:90px;height:90px;margin:0 auto 24px;background:rgba(230,23,33,.1);border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:40px;color:#E61721;opacity:0;transform:scale(0);animation:logoPop .8s .4s cubic-bezier(.34,1.56,.64,1) forwards}
@keyframes logoPop{to{opacity:1;transform:scale(1)}}
.splash-title{font-size:32px;font-weight:700;letter-spacing:6px;margin-bottom:10px;color:#E61721;opacity:0;transform:translateY(20px);animation:fadeUp .6s .7s ease forwards}
.splash-subtitle{font-size:14px;opacity:0;color:#666;transform:translateY(15px);animation:fadeUp .6s .9s ease forwards}
@keyframes fadeUp{to{opacity:1;transform:translateY(0)}}
.splash-loader{width:120px;height:3px;margin:30px auto 0;background:rgba(230,23,33,.15);border-radius:3px;overflow:hidden;opacity:0;animation:fadeUp .4s 1.1s ease forwards}
.splash-loader-bar{width:0;height:100%;background:#E61721;border-radius:3px;animation:loadBar 1.5s 1.2s ease forwards}
@keyframes loadBar{to{width:100%}}
