 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px 15px;
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            color: white;
            margin-bottom: 25px;
        }

        h1 {
            font-size: 2.2em;
            margin-bottom: 8px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .subtitle {
            font-size: 1em;
            opacity: 0.95;
            margin-bottom: 20px;
        }

        .top-nav {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 10px;
            padding: 12px 20px;
            margin-bottom: 25px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            backdrop-filter: blur(10px);
            position: relative;
        }

        .nav-container {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .more-menu {
            position: relative;
        }

        .more-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 30px;
            background: transparent;
            border: none;
            color: #666;
            font-size: 0.9em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .more-btn:hover {
            background: #f5f7ff;
            color: #667eea;
            transform: translateY(-2px);
        }

        .more-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .more-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            background: white;
            border-radius: 15px;
            padding: 10px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            z-index: 200;
            min-width: 200px;
            max-height: 400px;
            overflow-y: auto;
        }

        .more-dropdown.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        .more-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #666;
            font-size: 0.9em;
            margin-bottom: 4px;
        }

        .more-dropdown-item:hover {
            background: #f5f7ff;
            color: #667eea;
        }

        .more-dropdown-item .nav-icon {
            font-size: 1.2em;
        }

        .more-dropdown-item .nav-badge {
            margin-left: auto;
            background: rgba(102, 126, 234, 0.15);
            color: #667eea;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.8em;
            font-weight: 600;
        }

        .menu-toggle {
            display: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 1em;
            cursor: pointer;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
        }

        .menu-toggle:hover {
            transform: translateY(-2px);
        }

        .menu-toggle.active {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }

        .hamburger {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .hamburger span {
            display: block;
            width: 18px;
            height: 2px;
            background: white;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .menu-toggle.active .hamburger span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .menu-toggle.active .hamburger span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active .hamburger span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .nav-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            right: 0;
            background: white;
            border-radius: 20px;
            padding: 15px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            z-index: 100;
            max-height: 70vh;
            overflow-y: auto;
        }

        .nav-dropdown.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .nav-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #666;
            margin-bottom: 6px;
        }

        .nav-dropdown-item:hover {
            background: #f5f7ff;
            color: #667eea;
        }

        .nav-dropdown-item.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 600;
        }

        .nav-dropdown-item .nav-icon {
            font-size: 1.4em;
        }

        .nav-dropdown-item .nav-text {
            flex: 1;
            font-size: 0.95em;
        }

        .nav-dropdown-item .nav-badge {
            background: rgba(102, 126, 234, 0.15);
            color: #667eea;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.85em;
            font-weight: 600;
        }

        .nav-dropdown-item.active .nav-badge {
            background: rgba(255, 255, 255, 0.25);
            color: white;
        }

        .nav-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 30px;
            background: transparent;
            border: none;
            color: #666;
            font-size: 0.9em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .nav-pill:hover {
            background: #f5f7ff;
            color: #667eea;
            transform: translateY(-2px);
        }

        .nav-pill.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .nav-icon {
            font-size: 1.2em;
        }

        .nav-badge {
            background: rgba(255, 255, 255, 0.3);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.85em;
        }

        .nav-pill.active .nav-badge {
            background: rgba(255, 255, 255, 0.25);
        }

        .home-view {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 18px;
            margin-bottom: 20px;
        }

        .category-card {
            background: white;
            border-radius: 15px;
            padding: 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .category-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .card-header {
            padding: 18px 20px 15px;
            text-align: center;
            border-bottom: 2px solid #f5f5f5;
        }

        .card-icon {
            font-size: 2.2em;
            margin-bottom: 8px;
            display: block;
        }

        .card-title {
            font-size: 1.3em;
            font-weight: bold;
            color: #333;
            margin-bottom: 6px;
        }

        .card-description {
            color: #666;
            font-size: 0.8em;
            line-height: 1.4;
        }

        .tools-list {
            padding: 12px 20px 15px;
            max-height: 320px;
            overflow-y: auto;
        }

        .tools-list::-webkit-scrollbar {
            width: 6px;
        }

        .tools-list::-webkit-scrollbar-track {
            background: #f8f8f8;
            border-radius: 10px;
        }

        .tools-list::-webkit-scrollbar-thumb {
            background: #ddd;
            border-radius: 10px;
        }

        .tool-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            margin-bottom: 4px;
            border-radius: 8px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .tool-item:hover {
            background: #f5f7ff;
            transform: translateX(3px);
        }

        .tool-number {
            font-size: 0.85em;
            font-weight: 600;
            color: #aaa;
            min-width: 22px;
        }

        .tool-icon {
            font-size: 1.2em;
            min-width: 24px;
            text-align: center;
        }

        .tool-name {
            flex: 1;
            font-size: 0.9em;
            color: #333;
            font-weight: 500;
        }

        .tool-badge {
            padding: 2px 7px;
            background: #667eea;
            color: white;
            border-radius: 10px;
            font-size: 0.65em;
            font-weight: bold;
        }

        .tool-badge.hot {
            background: #ff6b6b;
        }

        .tool-badge.new {
            background: #51cf66;
        }

        .tool-rating {
            display: flex;
            align-items: center;
            gap: 3px;
            font-size: 0.8em;
            color: #666;
            font-weight: 600;
        }

        .star {
            color: #ffc107;
        }

        .view-all-btn {
            display: block;
            width: calc(100% - 40px);
            margin: 0 20px 18px;
            padding: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 0.9em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-all-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }

        @media (min-width: 1400px) {
            .home-view {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (min-width: 1000px) and (max-width: 1399px) {
            .home-view {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 700px) and (max-width: 999px) {
            .home-view {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 699px) {
            .home-view {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 1.8em;
            }
        }

        @media (max-width: 580px) {
            .nav-container {
                display: none;
            }

            .menu-toggle {
                display: flex;
                width: 100%;
                justify-content: center;
            }

            .top-nav {
                border-radius: 20px;
            }
        }