/*reset*/

/* 顶部导航区 (现代毛玻璃风格) */
        .header {
            position: sticky;
            top: 0;
            z-index: 20;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(226,232,240,0.6);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo-area h1 {
            font-size: 22px;
            font-weight: 700;
            background: linear-gradient(135deg, #1e293b, #3b82f6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.5px;
        }
        .logo-area span {
            font-size: 10px;
            font-weight: 500;
            color: #5b6e8c;
            letter-spacing: 0;
        }

        .header-actions {
            display: flex;
            gap: 18px;
        }

        .header-actions h1 {
            font-size: 22px;
            font-weight: 700;
            background: linear-gradient(135deg, #1e293b, #3b82f6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.5px;
        }

        /* 顶部导航 (毛玻璃) */
        .nav-bar {
            position: sticky;
            top: 0;
            z-index: 30;
            background: rgba(255,255,255,0.94);
            backdrop-filter: blur(16px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            border-bottom: 1px solid #f0f2f5;
        }
        .nav-btn {
            width: 40px;
            height: 40px;
            background: #f8fafc;
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: #1e293b;
            font-size: 18px;
        }
        .nav-btn:active {
            background: #eef2ff;
            transform: scale(0.94);
        }
        .nav-actions {
            display: flex;
            gap: 12px;
        }

         /* 移动端容器，居中显示优雅 */
        .app-wrapper {
            max-width: 560px;
            margin: 0 auto;
            background: #F4F7FB;
            min-height: 100vh;
            box-shadow: 0 0 30px rgba(0,0,0,0.02);
        }

        /* 顶部渐变品牌区 */
        .hero-section {
            background: linear-gradient(135deg, #0A2E3F 0%, #1A4C6E 100%);
            padding: 32px 20px 38px 20px;
            border-radius: 0 0 32px 32px;
            color: white;
            position: relative;
            margin-bottom: 20px;
        }

        .hero-title {
            font-size: 1.9rem;
            font-weight: 700;
            letter-spacing: -0.3px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .hero-title i {
            font-size: 1.8rem;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }

        .hero-sub {
            font-size: 0.85rem;
            opacity: 0.85;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .stat-chip {
            background: rgba(255,255,255,0.18);            
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: 500;
        }
        /* 搜索条 (现代圆润玻璃质感) */
        .search-section {
            padding: 12px 16px;
            background: #ffffff;
            border-bottom: 1px solid #edf2f7;
        }
        .search-box {
            background: #f1f5f9;
            border-radius: 32px;
            padding: 10px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s;
        }
        .search-box i {
            color: #94a3b8;
            font-size: 16px;
        }
        .search-box input {
            background: transparent;
            border: none;
            flex: 1;
            font-size: 15px;
            font-weight: 400;
            outline: none;
            font-family: 'Inter', sans-serif;
        }
        .search-box input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

/* 分类标签 (横向滚动，现代胶囊) */
        .categories-tabs {
            background: #ffffff;
            padding: 12px 16px 8px 16px;
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: thin;
            display: flex;
            gap: 8px;
            border-bottom: 1px solid #eef3fc;
        }
        .categories-tabs::-webkit-scrollbar {
            height: 2px;
        }
        .category-chip {
            display: inline-flex;
            padding: 8px 20px;
            background: #f1f5f9;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 500;
            color: #334155;
            transition: all 0.2s;
            cursor: pointer;
        }
        .category-chip.active {
            background: #0f172a;
            color: white;
            box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        }
        .category-chip:active {
            transform: scale(0.96);
        }

        /* 律所列表网格 (卡片式清爽) */
        .lawfirm-list {
            padding: 8px 16px 16px 16px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        /* 律所卡片 */
        .firm-card {
            background: white;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.05);
            transition: transform 0.18s, box-shadow 0.2s;
            cursor: pointer;
            border: 1px solid rgba(0,0,0,0.02);
        }

        .firm-card:active {
            transform: scale(0.99);
        }

        .card-content {
            padding: 20px 18px;
            position: relative;
        }

        .firm-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 12px;
        }

        .firm-icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #EFF3FA, #E3EAF2);
            border-radius: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: #1A5D7D;
            box-shadow: 0 4px 8px rgba(0,0,0,0.02);
        }

        .firm-info {
            flex: 1;
        }

        .firm-name {
            font-size: 1.25rem;
            font-weight: 700;
            color: #0A2E3F;
            letter-spacing: -0.2px;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .verify-badge {
            background: #EFF8F0;
            border-radius: 30px;
            font-size: 0.6rem;
            padding: 3px 8px;
            color: #227550;
            font-weight: 600;
        }

        .location {
            font-size: 0.75rem;
            color: #5C748B;
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .specialty-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 12px 0 12px 0;
        }

        .tag {
            background: #F0F4F9;
            border-radius: 24px;
            padding: 4px 12px;
            font-size: 0.7rem;
            font-weight: 500;
            color: #2C6280;
        }

        .stats-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            border-top: 1px solid #ECF2F8;
            padding-top: 12px;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.7rem;
            color: #4D6A84;
        }

        .stat-item i {
            font-size: 0.75rem;
            width: 1.2rem;
            color: #7596B0;
        }

        .contact-hint {
            background: #F8FAFE;
            border-radius: 40px;
            padding: 5px 12px;
            font-size: 0.7rem;
            font-weight: 500;
            color: #1A6A8F;
        }

        /* 空状态 */
        .empty-placeholder {
            text-align: center;
            padding: 56px 24px;
            background: white;
            border-radius: 40px;
            margin: 20px 0;
        }

        .empty-placeholder i {
            font-size: 3rem;
            color: #BAC8D9;
            margin-bottom: 12px;
        }
        /* 底部版权 */
        .footer-tip {
            text-align: center;
            font-size: 0.7rem;
            color: #92A6BB;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid #E3ECF3;
            margin-left: 16px;
            margin-right: 16px;
        }

        /* 轻提示toast */
        .toast-message {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%) scale(0.9);
            background: #1E2F3EE6;
            backdrop-filter: blur(8px);
            color: white;
            padding: 8px 22px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
            opacity: 0;
            transition: 0.2s;
            pointer-events: none;
            z-index: 200;
            white-space: nowrap;
            font-family: inherit;
        }
        .toast-show {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }