/* 幸福宝 - index2 页面样式（从视图模板抽出，请勿内联回页面） */
:root { --primary: #2563eb; --primary-hover: #1d4ed8; --bg-header: #ffffff; --text-primary: #1e293b; --text-secondary: #64748b; --border-color: #e2e8f0; }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
        body { background: #f1f5f9; color: #1e293b; line-height: 1.6; min-height: 100vh; }
        .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
        
        /* 顶部导航 */
        header { width: 100%; background: var(--bg-header); border-bottom: 1px solid var(--border-color); }
        .header-inner { max-width: 1800px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 64px; }
        .logo-section { display: flex; align-items: center; gap: 12px; }
        .logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }
        .logo-text { font-size: 20px; font-weight: 700; color: #1e293b; }
        
        /* 导航菜单 */
        .nav-section { width: 100%; display: flex; align-items: center; gap: 8px; background: white; border-bottom: 1px solid var(--border-color); padding: 0 20px; margin-bottom: 24px; height: 56px; }
        .nav-item { display: flex; align-items: center; gap: 8px; padding: 16px 16px; border-radius: 0; color: #64748b; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border-bottom: 2px solid transparent; position: relative; }
        .nav-item:hover { background: #f8fafc; color: var(--primary); }
        .nav-item.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(37, 99, 235, 0.03); }
        .nav-item i { font-size: 14px; }
        .nav-item a { color: inherit; text-decoration: none; }
        .nav-item .arrow { font-size: 10px; margin-left: 2px; }
        .nav-item.dropdown:hover .dropdown-content { display: block; }
        .dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: white; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); min-width: 200px; padding: 8px 0; }
        .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; color: #475569; cursor: pointer; transition: background 0.2s; }
        .dropdown-item:hover { background: #f1f5f9; color: var(--primary); }
        
        /* 右侧工具栏 */
        .tools-section { display: flex; align-items: center; gap: 4px; }
        .tool-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; border-radius: 6px; color: #64748b; cursor: pointer; transition: all 0.2s ease; position: relative; }
        .tool-btn:hover { background: #f1f5f9; color: var(--primary); }
        .tool-btn.has-badge::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }
        .btn-primary { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--primary); color: white; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
        .btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
        
        /* 用户信息 */
        .user-section { display: flex; align-items: center; gap: 12px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border-color); }
        .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 600; }
        .user-info { display: flex; flex-direction: column; }
        .user-name { font-size: 13px; font-weight: 600; color: #1e293b; }
        .user-role { font-size: 11px; color: #94a3b8; }
        .main-content { display: grid; grid-template-columns: 7fr 2fr; gap: 30px; margin-bottom: 20px; align-items: start; }
        .sidebar { background: white; border-radius: 8px; padding: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); margin-top: 0; }
        .sidebar-title { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f0f3f8; color: #2c3e50; }
        .sidebar-menu { list-style: none; }
        .sidebar-menu li { margin-bottom: 12px; }
        .sidebar-menu a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #5e697c; padding: 10px 14px; border-radius: 8px; transition: all 0.3s ease; }
        .sidebar-menu a:hover, .sidebar-menu a.active { background: linear-gradient(135deg, #12ADFF, #12ADFF 100%); color: white; border-radius: 4px; }
        .sidebar-menu i { width: 20px; text-align: center; }
        .content { display: flex; flex-direction: column; gap: 24px; margin-top: 0; padding-top: 0; width: 100%; }
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
        .stat-card { background: white; border-radius: 6px; padding: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; }
        .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }
        .icon-red { background: rgba(255, 71, 87, 0.15); color: #ff4757; }
        .icon-purple { background: rgba(106, 17, 203, 0.15); color: #6a11cb; }
        .icon-green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
        .icon-orange { background: rgba(255, 165, 0, 0.15); color: #ffa500; }
        .stat-value { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
        .stat-label { color: #7f8c8d; font-size: 14px; }
        .card { background: white; border-radius: 6px; padding: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
        .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .card-title { font-size: 18px; font-weight: 700; color: #2c3e50; }
        .card-actions { display: flex; gap: 12px; }
        .card-action { color: #7f8c8d; cursor: pointer; transition: color 0.3s; }
        .card-action:hover { color: #2575fc; }
        .project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .project-card { display: flex; flex-direction: column; border-radius: 8px; background: #f9fafc; overflow: hidden; transition: all 0.3s ease; border-left: 3px solid transparent; }
        .project-card:hover { background: #f0f5ff; border-left-color: #2575fc; transform: translateX(4px); }
        .project-card.project-disabled { opacity: 0.6; filter: grayscale(60%); }
        .project-card.project-disabled:hover { background: #f9fafc; border-left-color: transparent; transform: none; }
        .project-cover { width: 100%; height: 160px; object-fit: cover; }
        .project-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
        .project-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #2c3e50; }
        .project-desc { font-size: 14px; color: #7f8c8d; margin-bottom: 12px; line-height: 1.5; flex: 1; }
        .project-progress { margin-bottom: 12px; }
        .progress-bar { height: 8px; background: #e8ecef; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
        .progress-fill { height: 100%; background: linear-gradient(90deg, #6a11cb, #2575fc); border-radius: 4px; transition: width 0.5s ease; }
        .progress-info { display: flex; justify-content: space-between; font-size: 12px; color: #7f8c8d; }
        .progress-info .amount { color: #ff4757; font-weight: 600; }
        .project-meta { display: flex; gap: 16px; font-size: 12px; color: #95a5a6; margin-bottom: 12px; }
        .project-meta span { display: flex; align-items: center; gap: 4px; }
        .project-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
        .project-tag-item { padding: 3px 8px; border: 1px solid; border-radius: 12px; font-size: 12px; background: transparent; }
        .project-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #e8ecef; }
        .project-author { display: flex; align-items: center; gap: 8px; }
        .author-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #6a11cb, #2575fc); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; }
        .author-name { font-size: 13px; color: #5e697c; }
        .project-tags { display: flex; gap: 8px; }
        .project-tag { padding: 4px 10px; background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; border-radius: 12px; font-size: 11px; font-weight: 500; }
        .project-tag.ongoing { background: linear-gradient(135deg, #2575fc, #1d6efd); }
        .project-tag.pending { background: linear-gradient(135deg, #ffa500, #ff8c00); }
        .project-tag.completed { background: linear-gradient(135deg, #2ecc71, #10b981); }
        .project-tag.ended { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
        .project-tag.offline { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
        .quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
        .action-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; border: none; border-radius: 12px; background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #475569; cursor: pointer; transition: all 0.3s ease; font-size: 14px; font-weight: 500; }
        .action-btn:hover { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3); }
        .action-btn i { font-size: 24px; }
        .category-list { display: flex; flex-direction: column; gap: 12px; }
        .category-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 8px; background: #f9fafc; transition: all 0.3s ease; cursor: pointer; text-decoration: none; color: #2c3e50; }
        .category-item:hover { background: #f0f5ff; transform: translateX(4px); }
        .category-item .name { font-weight: 500; }
        .category-item .count { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
        .hot-list { display: flex; flex-direction: column; gap: 16px; }
        .ranking-list { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; }
        .ranking-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #f9fafc; transition: all 0.3s ease; }
        .ranking-item:hover { background: #f0f5ff; }
        .ranking-rank { width: 24px; height: 24px; border-radius: 6px; background: #e0e0e0; color: #666; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
        .ranking-rank.top { background: linear-gradient(135deg, #ffa500, #ff8c00); color: white; }
        .ranking-title { flex: 1; font-size: 13px; color: #2c3e50; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ranking-title:hover { color: #6a11cb; }
        .ranking-value { font-size: 12px; color: #ff4757; font-weight: 600; flex-shrink: 0; }
        .hot-item { display: flex; gap: 12px; padding: 12px; border-radius: 8px; background: #f9fafc; transition: all 0.3s ease; cursor: pointer; }
        .hot-item:hover { background: #f0f5ff; transform: translateX(4px); }
        .hot-rank { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #ff4757, #ff6b81); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
        .hot-rank.top { background: linear-gradient(135deg, #ffa500, #ff8c00); }
        .hot-info { flex: 1; }
        .hot-title { font-size: 14px; font-weight: 600; color: #2c3e50; margin-bottom: 4px; }
        .hot-amount { font-size: 13px; color: #ff4757; font-weight: 600; }
        .filter-tabs { display: flex; gap: 12px; margin-bottom: 20px; }
        .filter-tab { padding: 8px 20px; border-radius: 20px; background: #f1f5f9; color: #5e697c; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; border: none; }
        .filter-tab:hover { background: #e8ecef; }
        .filter-tab.active { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; }
        .btn { padding: 10px 20px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
        .btn-primary { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; }
        .btn-outline { background: transparent; border: 1px solid #6a11cb; color: #6a11cb; }
        .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3); }
        .btn-sm { padding: 6px 14px; font-size: 13px; }
        .back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(106, 17, 203, 0.4); transition: all 0.3s ease; opacity: 0; visibility: hidden; z-index: 1000; }
        .back-to-top.visible { opacity: 1; visibility: visible; }
        .back-to-top:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(106, 17, 203, 0.5); }
        .breadcrumb { display: flex; align-items: center; gap: 8px; padding: 12px 20px; margin-bottom: 24px; font-size: 14px; color: #7f8c8d; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
        .breadcrumb a { color: #7f8c8d; text-decoration: none; transition: color 0.3s; }
        .breadcrumb a:hover { color: #2575fc; }
        .breadcrumb .current { color: #2c3e50; font-weight: 500; }
        .empty-state { text-align: center; padding: 60px 20px; color: #7f8c8d; }
        .empty-state i { font-size: 48px; margin-bottom: 16px; color: #d1d5db; }
        .empty-state p { margin-bottom: 20px; }
        
        /* 底部 */
        .footer { background: #fff; margin-top: 40px; border-top: 1px solid #e0e0e0; }
        .footer-service { background: #f5f5f5; padding: 30px 0; }
        .service-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
        .service-item { display: flex; align-items: center; gap: 12px; }
        .service-icon { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #6a11cb, #2575fc); display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; }
        .service-text h4 { font-size: 16px; color: #333; margin-bottom: 4px; }
        .service-text p { font-size: 12px; color: #999; }
        .footer-nav { max-width: 1200px; margin: 0 auto; padding: 40px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
        .footer-nav-col h4 { font-size: 16px; color: #333; margin-bottom: 15px; }
        .footer-nav-col ul li { margin-bottom: 10px; }
        .footer-nav-col ul li a { font-size: 12px; color: #666; transition: color 0.3s; }
        .footer-nav-col ul li a:hover { color: #6a11cb; }
        .footer-contact { text-align: center; }
        .footer-phone { font-size: 24px; color: #6a11cb; font-weight: 700; margin-bottom: 8px; }
        .footer-time { font-size: 12px; color: #666; margin-bottom: 15px; }
        .footer-copyright { background: #333; padding: 20px 0; text-align: center; }
        .footer-copyright p { font-size: 12px; color: #999; margin-bottom: 5px; }

        /* 新闻资讯模块样式 */
        .news-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid var(--border-color);
        }
        .news-card .card-body {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 24px;
            padding-top: 0;
        }
        .news-main {
            border-right: 1px solid var(--border-color);
            padding-right: 24px;
        }
        .news-header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 20px;
        }
        .news-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-radius: 6px;
            flex-shrink: 0;
        }
        .badge-icon {
            color: #d97706;
            font-size: 14px;
        }
        .badge-text {
            font-size: 13px;
            font-weight: 600;
            color: #d97706;
        }
        .news-title {
            font-size: 22px;
            font-weight: 700;
            color: #1e293b;
            line-height: 1.4;
            margin: 0;
        }
        .news-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .news-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
        .news-stats .stat-item {
            background: white;
            padding: 16px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            text-align: center;
        }
        .news-stats .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 4px;
            display: block;
        }
        .news-stats .stat-label {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 6px;
            display: block;
        }
        .news-stats .stat-trend {
            font-size: 12px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
        }
        .news-stats .stat-trend.up {
            color: #10b981;
            background: rgba(16, 185, 129, 0.1);
        }
        .news-stats .stat-trend.down {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
        }
        .news-chart {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }
        .chart-title {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 16px;
            font-weight: 500;
        }
        .chart-bars {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            height: 100px;
            gap: 8px;
        }
        .chart-bar {
            flex: 1;
            background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
            border-radius: 4px 4px 0 0;
            position: relative;
            transition: height 0.5s ease;
            min-height: 10px;
        }
        .chart-bar:hover {
            background: linear-gradient(180deg, #1d4ed8 0%, #3b82f6 100%);
        }
        .chart-bar.active {
            background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
        }
        .chart-bar span {
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 11px;
            color: #94a3b8;
            white-space: nowrap;
        }
        .news-sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .news-section {
            background: white;
            padding: 16px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }
        .section-title {
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f1f5f9;
        }
        .section-title i {
            color: #2563eb;
            font-size: 14px;
        }
        .news-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .news-list li {
            padding: 10px 0;
            border-bottom: 1px solid #f8fafc;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: background 0.2s;
            padding: 8px 10px;
            border-radius: 6px;
        }
        .news-list li:hover {
            background: #f8fafc;
        }
        .news-list li:last-child {
            border-bottom: none;
        }
        .news-dot {
            width: 8px;
            height: 8px;
            background: #2563eb;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .news-list li span:not(.news-dot) {
            font-size: 13px;
            color: #475569;
            line-height: 1.4;
        }
        .topic-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .topic-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .topic-list li:hover {
            background: #f8fafc;
        }
        .topic-rank {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
        }
        .topic-list li:first-child .topic-rank {
            background: linear-gradient(135deg, #ef4444, #f87171);
            color: white;
        }
        .topic-list li:nth-child(2) .topic-rank {
            background: linear-gradient(135deg, #f59e0b, #fbbf24);
            color: white;
        }
        .topic-list li:nth-child(3) .topic-rank {
            background: linear-gradient(135deg, #3b82f6, #60a5fa);
            color: white;
        }
        .topic-name {
            font-size: 13px;
            color: #475569;
            font-weight: 500;
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid;
            display: inline-block;
        }
        .topic-value {
            font-size: 13px;
            font-weight: 600;
            color: #ef4444;
            margin-left: auto;
            white-space: nowrap;
        }
